do not show an edit link in the Asset Manager unless the asset is editable

This commit is contained in:
Colin Kuskie 2008-11-15 03:38:09 +00:00
parent 4e1df1ba0e
commit 38add7ccbe
3 changed files with 12 additions and 7 deletions

View file

@ -288,7 +288,7 @@ sub www_ajaxGetManagerPage {
childCount => $asset->getChildCount,
assetSize => $asset->get( 'assetSize' ),
lockedBy => $asset->get( 'isLockedBy' ),
canEditIfLocked => $asset->canEditIfLocked,
actions => $asset->canEdit && $asset->canEditIfLocked,
);
$fields{ className } = {};