Unable to control where users can build hosts
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1293716
Description of problem:
When a user has the 'create_hosts' permission then there are no controls to limit what Location, Host Group, Lifecycle Environment, Content View that the user can create the host in.
Version-Release number of selected component (if applicable):
Create a user, assign to a role. Give the following roles
edit_products, view_products name = P_GIRAFFE
promote_or_remove_content_views, view_content_views, publish_content_views name = CCV_CSL3.1_GIRAFFE or name = CV_GIRAFFE
promote_or_remove_content_views_to_environments, view_lifecycle_environments name = ENG
create_hosts, view_hosts hostgroup_fullname = HG_Capsule
Notice in the New Host as this user you can view ALL Host Groups, ALL Lifecycle Environments, ALL Content View's etc and initiate the build of a host.
Host is created by in host groups, lifecycle environments we have tried to limit.
Host creation to only show resources that the user has access too.