summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/digibug/controllers/digibug.php1
-rw-r--r--modules/digibug/helpers/digibug_theme.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/digibug/controllers/digibug.php b/modules/digibug/controllers/digibug.php
index 7bec4b86..45d3fde4 100644
--- a/modules/digibug/controllers/digibug.php
+++ b/modules/digibug/controllers/digibug.php
@@ -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());
diff --git a/modules/digibug/helpers/digibug_theme.php b/modules/digibug/helpers/digibug_theme.php
index bd269256..a8e7e5b2 100644
--- a/modules/digibug/helpers/digibug_theme.php
+++ b/modules/digibug/helpers/digibug_theme.php
@@ -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");