Require view_full to print photos.

This commit is contained in:
Bharat Mediratta
2009-06-27 14:43:40 -07:00
parent 6a8dc91f9f
commit f98b7dc631
2 changed files with 3 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ class Digibug_Controller extends Controller {
access::verify_csrf();
$item = ORM::factory("item", $id);
access::required("view_full", $id);
$proxy = ORM::factory("digibug_proxy");
$proxy->uuid = md5(rand());

View File

@@ -23,7 +23,8 @@ class digibug_theme_Core {
}
static function thumb_bottom($theme, $child) {
if ($theme->page_type() == "album" && $child->type == "photo") {
if ($theme->page_type() == "album" && $child->type == "photo" &&
access::can("view_full", $child)) {
$v = new View("digibug_album.html");
$v->id = $child->id;
$v->title = t("Print photo with Digibug");