Skip to content

Frontend: Hide secret creation elements from users who cannot create secrets

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

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).

  1. provide/inject a canCreateSecret boolean
    • this could eventually link up to a backend permission check like can?(current_user, :create_secret, parent)
  2. add some v-if="canCreateSecret"s to the relevant UI elements
Edited by 🤖 GitLab Bot 🤖