-
Notifications
You must be signed in to change notification settings - Fork 594
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
Bug 1671605 - Hide Machines nav section from normal users #1166
Bug 1671605 - Hide Machines nav section from normal users #1166
Conversation
frontend/public/components/nav.jsx
Outdated
const MachineNavSection_ = ({flags}) => { | ||
// Only check RBAC for MachineConfig since Machines are a namespaced resource. | ||
// There's no easy way to check the user's permission in all namespaces. | ||
return flags[FLAGS.CLUSTER_API] && flags[FLAGS.MACHINE_CONFIG] && flags[FLAGS.CAN_LIST_MACHINE_CONFIG] |
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.
Should we adjust the 'required' prop for the NavSection
component to take an array instead of a single flag?
11b3bad
to
dff9211
Compare
@TheRealJon thanks, updated |
dff9211
to
a72dd07
Compare
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.
/lgtm
install failed /retest |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1671605
Fixes https://jira.coreos.com/browse/CONSOLE-1238
/assign @TheRealJon