Bug 1229620

Summary: Accordions won't be visible to a role, unless the role is allowed full access
Product: Red Hat CloudForms Management Engine Reporter: Milan Zázrivec <mzazrivec>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Thom Carlin <tcarlin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.4.0CC: hkataria, jhardy, mfalesni, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-08 13:17:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Zázrivec 2015-06-09 09:20:06 UTC
Description of problem:
Accordions won't be visible to a role, unless the role is allowed full access

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

How reproducible:
Always

Steps to Reproduce:

1. Create a role, group using that role and a user
   belonging to the created group.
2. As an admin, navigate to
   Configure -> Configuration -> Access Control -> Roles -> [the above role]
3. As an admin: Configure -> Edit this role
4. For Product Features, allow the role to view Catalogs, but not to modify them. 
5. Log in as the newly created user
6. Navigate to Services -> Catalogs

Actual results:
Although the user should be able to view catalogs, the catalogs accordion won't be rendered at all. 

Expected results:
User is able to view catalogs.

Additional info:
Same problem shows for other accordions under Services -> Catalogs

Comment 1 Milan Zázrivec 2015-06-09 09:28:36 UTC
https://github.com/ManageIQ/manageiq/pull/3000

Comment 3 CFME Bot 2015-06-09 13:45:15 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/3b85befc10738c5f66084d6bda67c2954fee6701

commit 3b85befc10738c5f66084d6bda67c2954fee6701
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Wed May 27 11:47:04 2015 +0200
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Tue Jun 9 11:21:02 2015 +0200

    Fix rendering of accorions under Services -> Catalogs
    
    The trees need to be rendered (shown) in case the role in question
    has access to any of the child items under the top level accords.
    
    Fixes: #1655
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1229620

 vmdb/app/controllers/catalog_controller.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comment 5 Milan Falešník 2015-09-11 14:13:24 UTC
upstream 2015-08-31

Comment 6 Thom Carlin 2015-10-09 18:30:57 UTC
Verified in 5.5.0.5-beta1.1.20151007163855_ed40d96

Comment 8 errata-xmlrpc 2015-12-08 13:17:19 UTC
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.

https://access.redhat.com/errata/RHSA-2015:2551