Prevent Deleting on Folder Context Menu #17049
Unanswered
cancan101
asked this question in
Q&A / Support
Replies: 1 comment 10 replies
-
You can hide the delete button via the workspace permissions of the user. When a user is not allowed to delete the item it will disappear. If you would need to do this dynamically based on some logic you could use the |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there anyway to disable / hide the "Delete" option on the context menu that shows when right clicking on an Object in a folder:
and this is the code:
https://github.com/pimcore/admin-ui-classic-bundle/blob/1.4/public/js/pimcore/object/folder/search.js#L460-L473
in other places we have a
this.isAllowed("delete")
check (e.g. https://github.com/pimcore/admin-ui-classic-bundle/blob/558c7c245208793ed67a413eca86810d75fcb325/public/js/pimcore/asset/folder.js#L203-L223)Beta Was this translation helpful? Give feedback.
All reactions