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 - [x] Hide/show edit action based on user permissions https://gitlab.com/gitlab-org/gitlab/-/merge_requests/201551 - [x] Hide/show delete action based on user permissions https://gitlab.com/gitlab-org/gitlab/-/merge_requests/201551 - [x] Apply consistently across Disclosure Dropdown and Drawer locations https://gitlab.com/gitlab-org/gitlab/-/merge_requests/201551 - [x] Redirect away from edit page when the user tries to access the URLs directly (or any alternative solution) ## Dependencies - [x] Backend permission system https://gitlab.com/gitlab-org/gitlab/-/merge_requests/200887 ## Related BE Issue https://gitlab.com/gitlab-org/gitlab/-/issues/553928 ## Related MRs - [!196864](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/196864) - Delete mutation - [!197440](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/197440) - Delete button UI
issue