provectus/kafka-ui

[RBAC] Disable inaccessible menu items

Open

Aperta il 30 nov 2022

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Java (7799 star) (977 fork)batch import
area/rbacgood first issuescope/frontendstatus/acceptedtype/enhancement

Descrizione

Describe the bug In case user doesn't have any permission for any block (Consumers f.ex.), the corresponding element in the left menu should be disabled

Set up https://www.kafka-ui.provectus.io/

Steps to Reproduce

  1. Make sure user doesn't have any permission for "Consumers"
  2. Login to Kafka-ui
  3. Check cluster components in a left

Expected behavior The Consumers component should not be visible in a cluster slide bar

Screenshots

https://user-images.githubusercontent.com/104780608/204810047-60dde163-1497-4db2-a4d6-1c2812395931.mov

Guida contributor