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 #25648 - Delete filters as system admin #6330
Conversation
Issues: #25648 |
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.
As a system admin, I was able to delete the filter on role successfully
@@ -69,7 +69,7 @@ def find_role | |||
|
|||
def resource_base | |||
@resource_base ||= if @role.present? | |||
@role.filters.authorized(current_permission) | |||
Filter.authorized_as(User.current, current_permission) |
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.
as suggested on IRC, Filter.authorized(current_permission)
would be nicer if it works
b991c7f
to
d0b9463
Compare
Changed, |
Thanks @xprazak2, merging! |
No description provided.