Skip to content

Commit

Permalink
Don't show the rotate links if the active user can't edit the photo. …
Browse files Browse the repository at this point in the history
…Fixes ticket #1157. Thanks to psvo.
  • Loading branch information
bharat committed Jun 7, 2010
1 parent ab0bef1 commit 1d91e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/helpers/gallery_event.php
Expand Up @@ -242,7 +242,7 @@ static function site_menu($menu, $theme, $item_css_selector) {
$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")
Expand Down

0 comments on commit 1d91e1b

Please sign in to comment.