Bug #25039
closedNo Audit entries found if you selected the Organization filter.
Description
We have used the Organization in Foreman and we just upgraded the Foreman to 1.18.2.
If I selected the Organization filter to "Any Organization", I can view all of the hosts and view the Host audit entries by click the Audits button.
If I selected the Organization filter to any specific Organization, I can view all of the hosts but can't view the Host audit entries by click the Audits button.
https://foreman/hosts/server_name/audits shows "No entries found"
Updated by Chun-Liang Lin about 6 years ago
- Related to Bug #24232: Non admin user is unable to see the audits for katello and taxable resources created by admin using Any Location context added
Updated by Chun-Liang Lin about 6 years ago
The issue is the same with https://projects.theforeman.org/issues/24232. I can fix this bug with the solution.
Updated by Marek Hulán about 6 years ago
This will only work properly in 1.20, audits now inherit taxonomies from resources that are also taxable (e.g. by organization) and audits page reflects that. The change is too big to backport to 1.18/1.19. The workaround should be to look at the page under admin user in any context, that should always give you all audits.
Can we close this as dup of #24232?
Updated by Chun-Liang Lin about 6 years ago
My workaround is to remove the with_taxonomy_scope in app/controllers/audits_controller.rb now.
Yes. we can close it. Thanks.
Updated by Marek Hulán about 6 years ago
- Status changed from New to Duplicate
yeah that would help, thanks, closing