Created attachment 1508300 [details]
Description of problem:
as a restricted user with a cloned "auditor" role (assigned to the same org as user) with added "view_organizations/locations" filters,
the `affected organizations` and `affected locations` fields remain blank.
The audit records seem to respect the taxonomies though (they are filtered on switching the org/loc context)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create new org
2. clone auditor role and assign it to the new org and add view_organizations, view_locations filters to it
3. create user inside the new org and assign him the cloned role
4. as Admin, create some entity (if taxable, make sure you create them in the new org)
5. as Admin, verify the audit record was created for the action and that the audit contains the "affected orgs/locs" values
6. as New User, verify the created audits.
Affected Organizations, Locations are blank
applicable organizations/locations should be displayed (respecting the users taxonomy membership)
This seems very similar to the bug identified in https://bugzilla.redhat.com/show_bug.cgi?id=1646740.
Is the fix for the above bug not included in the latest build of 6.5?
Created redmine issue https://projects.theforeman.org/issues/26034 from this bug
Upstream bug assigned to email@example.com
This is caused by the fact, auditor role does not grant view_locations and view_organizations permissions. The patch will let these be displayed if user is assigned to such locs/orgs.
the affected orgs and locs are now visible
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.