In the AssetManager, do not show the Edit link in the More menu if the asset is locked.
This commit is contained in:
parent
1edc66367e
commit
0fa1ec4901
3 changed files with 11 additions and 6 deletions
|
|
@ -428,8 +428,9 @@ ENDHTML
|
|||
}
|
||||
|
||||
# And ourself
|
||||
$output .= sprintf q{<li><a href="#" onclick="WebGUI.AssetManager.showMoreMenu('%s','crumbMoreMenuLink'); return false;"><span id="crumbMoreMenuLink">%s</span></a></li>},
|
||||
$output .= sprintf q{<li><a href="#" onclick="WebGUI.AssetManager.showMoreMenu('%s','crumbMoreMenuLink', %s); return false;"><span id="crumbMoreMenuLink">%s</span></a></li>},
|
||||
$currentAsset->getUrl,
|
||||
($currentAsset->canEdit && $currentAsset->canEditIfLocked ? 1 : 0),
|
||||
$currentAsset->get( "menuTitle" ),
|
||||
;
|
||||
$output .= '</ol>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue