only show edit / set if the user can edit tags
This commit is contained in:
parent
5f4f941444
commit
db9a1cc7d8
@ -72,7 +72,10 @@ class ViewImageTheme extends Themelet {
|
|||||||
foreach($editor_parts as $part) {
|
foreach($editor_parts as $part) {
|
||||||
$html .= $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 .= "
|
$html .= "
|
||||||
<tr><td colspan='4'>
|
<tr><td colspan='4'>
|
||||||
<input class='view' type='button' value='Edit' onclick='$(\".view\").hide(); $(\".edit\").show();'>
|
<input class='view' type='button' value='Edit' onclick='$(\".view\").hide(); $(\".edit\").show();'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user