Show/Hide Edit and Delete Actions Based on Permissions
Summary
Hide edit and delete actions in the AI catalog interface when users don't have appropriate permissions.
Current State
- Edit action: Available in Disclosure Dropdown and Drawer
- Delete action: Available in Disclosure Dropdown (check Drawer too)
- Both actions currently visible to all users regardless of permissions
At the time of writing this issue, the Drawer has not landed in master yet.
Requirements
-
Hide/show edit action based on user permissions !201551 (merged) -
Hide/show delete action based on user permissions !201551 (merged) -
Apply consistently across Disclosure Dropdown and Drawer locations !201551 (merged) -
Redirect away from edit page when the user tries to access the URLs directly (or any alternative solution)
Dependencies
-
Backend permission system !200887 (merged)
Related BE Issue
Related MRs
- !196864 (merged) - Delete mutation
- !197440 (merged) - Delete button UI
Edited by Vanessa Otto