Bug 781272

Summary: +Add shouldn't be visible on UI without selecting the system template and with read only user
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Partha Aji <paji>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:19:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    
Attachments:
Description Flags
+Add option on UI for adding package group with read only user and without selecting template
none
No +Add with read only user none

Description Sachin Ghai 2012-01-13 06:36:21 UTC
Description of problem:
Created a read only user "reader" and assigned  "Read everything" role. When I login with reader user, I got +Add option to add package groups to system template. Nothing happens on UI if i click on +Add. 

However this +Add shouldn't be visible on UI without selecting the system template and with read only user.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. Login with admin user
2. Create a new user "reader"
3. Assign "Read everything" role to reader
4. Login with reader
5. Go to content management ==> system template 
6. select any product from left pane ==> traverse to package groups.

Actual results:
+Add is there on UI for adding package groups without selecting the template and with read only user. This happens only for package groups

Expected results:
+Add shouldn't be there is this case as we login with read only user and user has not selected the sys template.



Additional info:

Comment 1 Sachin Ghai 2012-01-13 06:37:08 UTC
Found this with:

[root@dhcp201-187 ~]# rpm -qa | grep katello
katello-glue-candlepin-0.1.174-2.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-certs-tools-1.0.1-2.el6.noarch
katello-common-0.1.174-2.el6.noarch
katello-cli-0.1.34-2.el6.noarch
katello-glue-pulp-0.1.174-2.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-cli-common-0.1.34-2.el6.noarch
katello-configure-0.1.52-2.el6.noarch
katello-glue-foreman-0.1.174-2.el6.noarch
katello-all-0.1.174-2.el6.noarch
katello-0.1.174-2.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
[root@dhcp201-187 ~]#

Comment 2 Sachin Ghai 2012-01-13 06:39:23 UTC
Created attachment 554991 [details]
+Add option on UI for adding package group with read only user and without selecting template

Comment 4 Sachin Ghai 2012-01-24 11:38:55 UTC
verified with katello-0.1.194-1.el6.noarch

The reported issue has been fixed. This time "+Add" against package groups with read only user is not visible.

Please see the attachment in next comment.

Comment 5 Sachin Ghai 2012-01-24 11:40:10 UTC
Created attachment 557199 [details]
No +Add with read only user