provectus/kafka-ui

[RBAC] Disable inaccessible menu items

Open

#2994 opened on Nov 30, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (7,799 stars) (977 forks)batch import
area/rbacgood first issuescope/frontendstatus/acceptedtype/enhancement

Description

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

Contributor guide