From db9a1cc7d8e5b0be2bdb9b3351fcfe9840c583d7 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 9 Feb 2012 17:29:04 +0000 Subject: [PATCH] only show edit / set if the user can edit tags --- ext/view/theme.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/view/theme.php b/ext/view/theme.php index 4cd80d2a..668e9289 100644 --- a/ext/view/theme.php +++ b/ext/view/theme.php @@ -72,7 +72,10 @@ class ViewImageTheme extends Themelet { foreach($editor_parts as $part) { $html .= $part; } - if(!$image->is_locked() || $user->can("lock_image")) { + if( + (!$image->is_locked() || $user->can("lock_image")) && + $user->can("edit_image_tag") + ) { $html .= "