Bug #35994
Permission denied on Ansible part of host page when usergroup of user have administrator role
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2158508
Description of problem:
With user which is non-admin but it is in usergroup which should give him administrator role is possible to access lot of pages, but on
WebUI -> Hosts -> select host -> Ansible
is shown below
Permission denied
You are not authorized to view the page. Request the following permissions from administrator: view_ansible_roles.
Version-Release number of selected component (if applicable):
satellite-6.12.0-4.el8sat.noarch
How reproducible:
Always
Steps to Reproduce:
1. Create user with non-admin (in my case ldap based)
2. Create usergroup with administrator role (in my case ldap based)
3. As user from (1) log in and try to access
WebUI -> Hosts -> select host -> Ansible
Actual results:
Permission denied
You are not authorized to view the page. Request the following permissions from administrator: view_ansible_roles.
Expected results:
See Ansible page as user should be administrator due to usergroup
Additional info:
Reproducer ready
Associated revisions
History
#1
Updated by Nofar Alfassi 2 months ago
- Target version changed from foreman_ansible-10.0.0 to foreman_ansible-11.0.0
- Assignee set to Nofar Alfassi
- Subject changed from Permission denied on Ansible part of host page when usergroup of user have administrator role to Permission denied on Ansible part of host page when usergroup of user have administrator role
#2
Updated by The Foreman Bot 2 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/587 added
#3
Updated by The Foreman Bot about 2 months ago
- Fixed in Releases foreman_ansible-11.0.0 added
#4
Updated by Nofar Alfassi about 2 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|e9ac79c209d469bb247ffd488f68d62e0b569869.
#5
Updated by The Foreman Bot about 2 months ago
- Pull request https://github.com/theforeman/foreman_ansible/pull/593 added
#6
Updated by The Foreman Bot about 1 month ago
- Fixed in Releases foreman_ansible-10.0.0 added
#7
Updated by Nofar Alfassi about 1 month ago
- Fixed in Releases foreman_ansible-10.4.0, foreman_ansible-11.1.0 added
- Fixed in Releases deleted (
foreman_ansible-10.0.0, foreman_ansible-11.0.0)
Fixes #35994 - check if user has administrator permissions by its usergroup