Skip to content

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

Related BE Issue

#553928 (closed)

Related MRs

Edited by Vanessa Otto