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

Requests should allow access to users with admin role #15151

Merged
merged 1 commit into from
May 19, 2017

Conversation

imtayadeway
Copy link
Contributor

Currently we check to see if the user is the "admin" user - we need to
check to see if the user has administrator priveleges regardless of
who they are.

Incidentally removes a couple of uses of any_instance_of 🎉

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1421878

Side note: I'm not sure why they other request types do not allow admin access to all requests, it seems that we should fix that as a follow up to this once merged.

@miq-bot add-label api, bug
@miq-bot assign @abellotti

Thanks @jvlcek for your help debugging this!

Currently we check to see if the user is the "admin" user - we need to
check to see if the user has administrator priveleges regardless of
who they are.

Incidentally removes a couple of uses of `any_instance_of` 🎉

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1421878
@miq-bot
Copy link
Member

miq-bot commented May 18, 2017

Checked commit imtayadeway@fe0485b with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 0 offenses detected
Everything looks fine. ⭐

@abellotti abellotti added this to the Sprint 61 Ending May 22, 2017 milestone May 19, 2017
@abellotti
Copy link
Member

👍 Thanks @imtayadeway for fixing this. 🎵

@abellotti abellotti merged commit 2c07aaa into ManageIQ:master May 19, 2017
imtayadeway added a commit to imtayadeway/manageiq that referenced this pull request May 19, 2017
This should have been done as part of
ManageIQ#15151, which fixed the
collection routes. This completes that work by fixing the member
routes.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1421878
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants