Fixed Do not show the "Move Media" link if there aren't permissions for doing that

imthebest

Well-known member
There is the following permission set to No: "Move media by self to any category / own album"

However when on gallery/media_name.123/edit I can see the link "Move Media". If I click on it I get the following error message: "You do not have permission to move this media".

Imho it would be better if you simply hide the link if there aren't permissions for doing that...
 
There are permission checks in the code, may need to compare the two actions to see what the difference is.
 
I see that you're already evaluating <xen:if is="{$canMoveMedia}"> on xengallery_media_view_toolbar so maybe it's just about to extend that to the proper template...
 
Back
Top Bottom