Skip to content

[RulesDashboard] - Only Show Ruleset Type Create/Delete for Admin #4281

Description

@cielbellerose

Description

Currently, every user sees a trash icon on the Rules landing page for deleting ruleset types and an 'Add Ruleset Type' modal. Only admins can use these features. We want to add a check so only admins see the delete icons and Add modal.

Additionally, fix that when a ruleset type is deleted currently the user needs to manually refresh the page to see the change

Acceptance Criteria

  • Admins see delete icons and 'Add Ruleset Type' modal
  • All other users do not see delete column or Add modal.
  • When a ruleset type is soft deleted the table updates automatically

Current UI

Image

Goal for Non-Admin View

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions