summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-06 23:19:02 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-06 23:19:02 -0700
commit1d91e1b2dc8456681f9e38baaca1d191cff1ac7a (patch)
treedf74efa8bb1b35daee4545b88d6aa5562840587d /modules/gallery/helpers
parentab0bef14be78701aedd647dd4eaccab641b6d01d (diff)
Don't show the rotate links if the active user can't edit the photo. Fixes ticket #1157. Thanks to psvo.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/gallery_event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 89ad6a4c..ae7131ae 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -242,7 +242,7 @@ class gallery_event_Core {
$csrf = access::csrf_token();
$theme_item = $theme->item();
$page_type = $theme->page_type();
- if ($item->is_photo() && graphics::can("rotate")) {
+ if ($can_edit && $item->is_photo() && graphics::can("rotate")) {
$options_menu
->append(
Menu::factory("ajax_link")