-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BZ#1589409 - Support for disabling Dashboard #1446
Conversation
I'm not sure of the RBAC model for the SUI, but I wonder if utilizing something like this might make more sense than only handling a single use case:
@chalettu @AllenBW @Loicavenel @ohadlevy thoughts? |
We could set it up to go down the list of menu items and pick the first one that the user has access to. I am not really sure what would be best from what we feel are requirements but let me know what you all think would be the best user experience |
I think that makes sense @chalettu but you should def get the 👍from either Ohad or Loic first! |
Oh oh yeah so if a user can view say, the service catalog, and ONLY the service catalog, thats the page they should be pushed to 😋 |
yes sir @AllenBW that would be my recommendation |
Checked commits https://github.com/chalettu/manageiq-ui-service/compare/002cf5c8e057f2a464c50897b494a9104ddddc1c~...9d18ce79cb7051f7ba14a353ef2fc627a7126775 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Updated the logic to go down the list of pages a user has access to and pick the firsts one they can access and sends them there . So if a person tries to go to a page they do not have access to, they will be redirected to the first menu item they do have access to. |
@AllenBW , I tried reproducing the error you are seeing with the role you had pictured above and can't seem to reproduce it. Did you close your browser out and try fresh after saving the role changes? We cache permissions so if you didnt log out first of SUI, sometimes it causes weird things to happen. |
Ooooooo well there we go, testing a bit more, will approve in a bit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BZ#1589409 - Support for disabling Dashboard (cherry picked from commit ae38582) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1595454
Gaprindashvili backport details:
|
@miq-bot add_label bug
@miq-bot add_label gaprindashvili/yes
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1589409