-
Notifications
You must be signed in to change notification settings - Fork 101
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
Fixes #9895 - user in Discovery Reader role should see discovery rules #173
Conversation
Can you add couple of tests for this? We can inspire from Foreman Core where we have some permission tests already. |
I think we need to do a db migration here or whatever is needed to get this working since we already released discovery 2.0 with this bug. Also, as part of this migration can you please delete the old role called |
Ok disregard part of the old role called
After this patch:
We need to delete those. To trigger the error add a new testing role with a permission you have changed in the
Restart and voilla:
|
ping? |
@lzap I added a migration, can you please retest? |
Merged as 0d9cee2, thank you! |
after adding this I needed to re-add the filters with the correct resource and then the role started working for me.