Red Hat Bugzilla – Bug 1304815
Non-admin user can not add or Remove Host Collection to or from Activation Key.
Last modified: 2017-02-06 03:54:14 EST
Description of problem:
When logging on with a non admin user with an role with all rights on Activation Key and Host Collections, it is not possible to Add or Remove Host Collections from Activation Keys. The add or remove button is not present.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
User logged on to Satellite webinterface with:
- No admin rights
- Role assigned with:
- create_activation_keys, edit_activation_keys, destroy_activation_keys, view_activation_keys permissions on Activation Keys
- view_host_collections, create_host_collections, edit_host_collections, destroy_host_collections on Host Collections
- Navigate to: Content --> Activation Keys --> Select existing Activation Key --> TAB Host Collections
- No Add or Remove button is visible to be able to add or remove host collections from the Activation Key,
No add or remove button.
webUI should provide add and remove button for non-admin user.
*** Bug 1384728 has been marked as a duplicate of this bug. ***
Created redmine issue http://projects.theforeman.org/issues/16997 from this bug
Proposed fix in Katello PR: https://github.com/Katello/katello/pull/6402
I tested this under Satellite 6.1.10
Customer tested this under Satellite 6.2.2
He has also reported that subscriptions are not showing up (which is a more major defect) when using a non-admin role.
When using an admin role, the subscriptions do show.
I'm currently verifying if I'm seeing the situation with roles on my Satellite.
In 6.2.2 I've confirmed that if you add all Roles, or specify a Role with everything, that there isn't a way to view the subscription inside the activation key.
Is it possible to get the missing subscription inside the activation key also resolved.
It looks like the issue raised by comment 10 and 11 has already been addressed by bug 1333219. If it is Ok, we'll keep this one focused on the initial issue raised for host collections.
Yes it will be fine to focus on host collections.
Verified in Satellite 6.2.5
Create a user with only the required permissions and was able to successfully view/add/remove host collections from the activation key. see attached screenshots
Created attachment 1227015 [details]
Created attachment 1227016 [details]
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
*** Bug 1404474 has been marked as a duplicate of this bug. ***