summaryrefslogtreecommitdiff
path: root/modules/digibug
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-27 14:43:40 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-27 14:43:40 -0700
commitf98b7dc631afc4da595aa149b21b5d38f41afd22 (patch)
tree4e3dd32058fd8cc780061589ec7d9895bbe223cf /modules/digibug
parent6a8dc91f9f1f31657ca67d920283e534de15fa0f (diff)
Require view_full to print photos.
Diffstat (limited to 'modules/digibug')
-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");