provectus/kafka-ui

[RBAC] Disable inaccessible menu items

Open

#2,994 建立於 2022年11月30日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Java (7,799 star) (977 fork)batch import
area/rbacgood first issuescope/frontendstatus/acceptedtype/enhancement

描述

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

貢獻者指南