Hide secret creation elements from users who cannot create secrets
Proposal
Hide buttons, links, and menu items that lead to screens used to create, edit, or delete secrets from users without permission to do so (when they have read permission but not write permission).
- provide/inject a
canCreateSecret
boolean- this could eventually link up to a backend permission check like
can?(current_user, :create_secret, parent)
- this could eventually link up to a backend permission check like
- add some
v-if="canCreateSecret"
s to the relevant UI elements
Edited by Miranda Fluharty