Skip to content

Hide tabs based on user authorization levels#3035

Open
WilliamBZA wants to merge 4 commits into
authorizationfrom
show-hide-tabs
Open

Hide tabs based on user authorization levels#3035
WilliamBZA wants to merge 4 commits into
authorizationfrom
show-hide-tabs

Conversation

@WilliamBZA

@WilliamBZA WilliamBZA commented Jun 19, 2026

Copy link
Copy Markdown
Member

Adds a Pinia UserPermissionsStore that fetches a permission summary + full descriptor from ServiceControl, then hides nav-menu items (PageHeader.vue) and Configuration sub-tabs (ConfigurationView.vue) the current user lacks rights for. Also adds a new User Permissions config page that renders the permission matrix, plus capability detection in EnvironmentAndVersionsStore.

Reviewer Checklist

  • Components are broken down into sensible and maintainable sub-components.
  • Styles are scoped to the component using it. If multiple components need to share CSS, then a .css file is created containing the shared CSS and imported into component scoped style sections.
  • Naming is consistent with existing code, and adequately describes the component or function being introduced
  • Only functions utilizing Vue state or lifecycle hooks are named as composables (i.e. starting with 'use');
  • No module-level state is being introduced. If so, request the PR author to move the state to the corresponding Pinia store.

@WilliamBZA WilliamBZA marked this pull request as ready for review June 19, 2026 09:15
@WilliamBZA WilliamBZA changed the title Show hide tabs Hide tabs based on user authorization levels Jun 19, 2026

@ramonsmits ramonsmits left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some improvement on:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants