Bug 1276022 - Sat6 should hide unusable hostgroups from the dropdown menu when creating new host
Summary: Sat6 should hide unusable hostgroups from the dropdown menu when creating new...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-28 12:20 UTC by Maxim Burgerhout
Modified: 2017-01-12 15:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-12 15:09:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Maxim Burgerhout 2015-10-28 12:20:30 UTC
Description of problem:
I created a role that has only the following filters:

Host Group 	view_hostgroups 		label ~ QA%
Host/managed 	create_hosts 		hostgroup_fullname ~ QA%

The way I understand this, this role should allow me to view hostgroups that start with 'QA' and create hosts in those same hostgroups only.

When I start creating a new host however, the dropdown menu in the new host screen still allows me to pick hostgroups that do not have 'QA' in their name.

Version-Release number of selected component (if applicable):
foreman-1.7.2.43-1.el7sat.noarch

How reproducible:


Steps to Reproduce:
1. Create role with filters as above
2. Attach role to user, log in with that uesr
3. Go to 'New host', click 'Host Group'

Actual results:
All hostgroups will show.

Expected results:
Only hostgroups that match the view_hostgroups filter for my role (i.e. hostgroups that start match 'QA%' are shown. 

Additional info:

Comment 1 Bryan Kearney 2016-07-26 19:10:40 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 2 Bryan Kearney 2017-01-12 15:09:40 UTC
This is an older bug which I do not envision being fixed in the near term. I am closing this out. If you believe doing so is an issue, please feel free to re-open and provide additional business information. Thank you.


Note You need to log in before you can comment on or make changes to this bug.