ManageIQ / manageiq-ui-service

Service UI for ManageIQ
Apache License 2.0
23 stars 91 forks source link

Button role-based visibility rules do not work in UI Service #1907

Open eggoide opened 5 months ago

eggoide commented 5 months ago

Hi, I would like to report the following bug: We are running Manage IQ petrosian-1.20230912222549_a07cb46 in a docker container. However, we have experienced this behaviour even before in version Najdorf.

The thing is that when I create a button and set its visibility to one role, it works in classic UI but it is completely ignored in /ui/service

How to reporoduce:

  1. I have created user1 and user2
  2. Created groups user1_group and user2_group
  3. Created user1_role and user2_role and assigned them accordingly to the user and group

image

  1. I have created a test button and set the visibility to user1_role image

Now, user1 should see the button and user2 should not. In classical UI it works: user1: image

user2: image

However in UI Service, the button is shown to both users nevermind the visibility settings. user1: image

user2: image

Fryguy commented 5 months ago

@GilbertCherrie Can you please take a look at this one?

GilbertCherrie commented 5 months ago

Yeah I can take a look.

miq-bot commented 1 month ago

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.