Project

General

Profile

Actions

Bug #33656

closed

Cloned viewer role cannot view facts

Added by Dominik Matoulek about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Facts
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1807258

Description of problem:

When the customer assigns the Viewer role to a non-admin user, that user can browse to Monitor > Facts to view a list of facts in Foreman. However, when the customer removes the Viewer role from that non-admin user, clones the Viewer role and assigns the new (ostensibly identical) role to that same non-admin user and then logs into Foreman with that user, that user is unable to browse to Monitor > Facts to view a list of facts in Foreman.

Furthermore, simply adding the "view_facts" permission to a new role also fails to grant this access. The built-in Viewer role appears to be the only way to grant non-admin users access to Monitor > Facts in the Foreman web UI.

How reproducible:

100% of the time

Steps to Reproduce:
method 1:
1. clone the viewer role
2. assign the new role to a new user
3. log into satellite as the new user
4. browse to monitor > facts

method 2 (failed workaround):
1. create a new role with permission view_facts
2. assign that role to a new user
3. log into satellite as the new user
4. browse to monitor > facts

Actual results:

The list of facts is empty.

Expected results:

The list of facts should appear the same for the non-admin user with these permissions as it does for an admin user.


Related issues 1 (1 open0 closed)

Is duplicate of Foreman - Bug #30377: Assigning location and organization to a role causes a malfunction to the filter function "facts"NewActions
Actions #1

Updated by Dominik Matoulek about 3 years ago

  • Subject changed from Cloned viewer role cannot view facts to Cloned viewer role cannot view facts
  • Assignee set to Dominik Matoulek
  • Triaged changed from No to Yes
Actions #2

Updated by Dominik Matoulek about 3 years ago

  • Description updated (diff)
Actions #3

Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8821 added
Actions #4

Updated by Dominik Matoulek about 3 years ago

  • Is duplicate of Bug #30377: Assigning location and organization to a role causes a malfunction to the filter function "facts" added
Actions #5

Updated by The Foreman Bot about 3 years ago

  • Fixed in Releases 3.2.0 added
Actions #6

Updated by Dominik Matoulek about 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by The Foreman Bot about 3 years ago

  • Fixed in Releases 3.1.1 added
Actions #8

Updated by Amit Upadhye about 3 years ago

  • Fixed in Releases 3.1.0 added
  • Fixed in Releases deleted (3.1.1)
Actions

Also available in: Atom PDF