Bug #30090
closedAnsible variables not visible to user role containing the filter view_ansible_variables
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1830247
Description of problem:
Ansible variables not visible to user containing the filter "Ansible variable": view_ansible_variables
How to reproduce :
The variables present in Foreman.
Users view if no filter is set (permission denied).
The filter which will be applied: view_ansible_variables.
Users view if permission is granted: empty list.
Steps to Reproduce:
1. Create user and role from Foreman webui :
Administer --> Users
Administer --> Roles
Assign the role to the user.
2. Create filter for the role :
Resource Type ---> Ansible variable ---> Choose view_ansible_variables ---> Save filter and role
3. Login as new user, access Configure ---> Variables list is empty. As admin user, able to see the list.
Actual results:
Unable to view the roles with given filter.
Expected results:
Should be able to view the roles with given filter.
Additional info:
1) I tried the same for roles with view_ansible_roles filter which works fine.
2) Even tried the following filters for variable, still list it empty for the new user.
create_ansible_variables, edit_ansible_variables, import_ansible_variables
Updated by The Foreman Bot about 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/foreman_ansible/pull/400 added
Updated by Marek Hulán almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|1deb3be67d820163bba22dd036fbc2a09118c551.