In the AssetManager, do not show the Edit link in the More menu if the asset is locked.

This commit is contained in:
Colin Kuskie 2009-02-11 04:42:15 +00:00
parent 1edc66367e
commit 0fa1ec4901
3 changed files with 11 additions and 6 deletions

View file

@ -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>';