Skip to content

Don't show add/edit role UI to non-admins #1010

@david-crespo

Description

@david-crespo

If you don't have permission to update the policy on a resource, you can currently still see the add, edit, and delete buttons and open and submit the corresponding forms (you get 403s back from the API). We should check the user's role and not show them that stuff unless they're an admin. I believe viewers can still see the policy, however.

So: show the policy, but not the edit button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions