only show edit / set if the user can edit tags

This commit is contained in:
Shish 2012-02-09 17:29:04 +00:00
parent 5f4f941444
commit db9a1cc7d8

View File

@ -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 .= "
<tr><td colspan='4'>
<input class='view' type='button' value='Edit' onclick='$(\".view\").hide(); $(\".edit\").show();'>