Bug #26034
closedblank affected organizations/locations for restricted user
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1652961
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):
6.5.0-5
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.
Actual results:
Affected Organizations, Locations are blank
Expected results:
applicable organizations/locations should be displayed (respecting the users taxonomy membership)
Additional info:
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman/pull/6547 added
Updated by Marek Hulán over 5 years ago
- Subject changed from blank affected organizations/locations for restricted user to blank affected organizations/locations for restricted user
- Fixed in Releases 1.22.0 added
Updated by Ondřej Pražák over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset fb210265616e1c6f393a3b92d723852457fa56a7.