Project

General

Profile

Bug #26034

blank affected organizations/locations for restricted user

Added by Marek Hulán 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Audit Log
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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:

Associated revisions

Revision fb210265 (diff)
Added by Ondřej Pražák 4 months ago

Fixes #26034 - Show affected taxonomies in audits (#6547)

History

#1 Updated by The Foreman Bot 4 months ago

  • Assignee set to Ondřej Pražák
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6547 added

#2 Updated by Marek Hulán 4 months 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

#3 Updated by Ondřej Pražák 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF