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

Skip calling Rbac on a null or nil target_class #1906

Merged
merged 1 commit into from
Aug 15, 2017

Conversation

syncrou
Copy link
Contributor

@syncrou syncrou commented Aug 14, 2017

When calling fetch_target_ids we were always running Rbac regardless if the parameter :target_class was populated or not.

In some cases, when the empty option was selected, a 'null' was getting sent over and forcing Rbac as well.

This fixes both cases.

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

@syncrou
Copy link
Contributor Author

syncrou commented Aug 14, 2017

@miq-bot add_label bug

@miq-bot assign @h-kataria

-cc @gmcculloug

@miq-bot
Copy link
Member

miq-bot commented Aug 14, 2017

Checked commit syncrou@1e222c6 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@mzazrivec mzazrivec added this to the Sprint 67 Ending Aug 21, 2017 milestone Aug 15, 2017
@mzazrivec mzazrivec self-assigned this Aug 15, 2017
@mzazrivec mzazrivec merged commit fb1cba5 into ManageIQ:master Aug 15, 2017
simaishi pushed a commit that referenced this pull request Aug 15, 2017
Skip calling Rbac on a null or nil target_class
(cherry picked from commit fb1cba5)

https://bugzilla.redhat.com/show_bug.cgi?id=1481851
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit fd54f3abb303a4495f82f3808f2b25108c73ce03
Author: Milan Zázrivec <[email protected]>
Date:   Tue Aug 15 10:01:56 2017 +0200

    Merge pull request #1906 from syncrou/skip_rbac_on_nil_or_null
    
    Skip calling Rbac on a null or nil target_class
    (cherry picked from commit fb1cba5c251a158fc1a4fc74c2fb3524ccf37570)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1481851

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.

5 participants