Skip to content
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

Merged

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Feb 5, 2019

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 5, 2019
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 5, 2019
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]
Copy link
Member

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?

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 8, 2019
@spadgett spadgett changed the title [WIP] Bug 1671605 - Hide Machines nav section from normal users Bug 1671605 - Hide Machines nav section from normal users Feb 8, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 8, 2019
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

@TheRealJon thanks, updated

Copy link
Member

@TheRealJon TheRealJon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

install failed

/retest

@openshift-merge-robot openshift-merge-robot merged commit 361814c into openshift:master Feb 8, 2019
@spadgett spadgett deleted the machine-config-permissions branch February 8, 2019 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants