Bug 1343418

Summary: WebUI:RBAC-Unable to login when the user has only access to Chargeback feature
Product: Red Hat CloudForms Management Engine Reporter: Ramesh A <rananda>
Component: UI - OPSAssignee: Martin Povolny <mpovolny>
Status: CLOSED CURRENTRELEASE QA Contact: Nikhil Dhandre <ndhandre>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: akarol, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:rbac
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1447752 (view as bug list) Environment:
Last Closed: 2018-03-06 15:22:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1447752    
Attachments:
Description Flags
Role-Access
none
Login Error none

Description Ramesh A 2016-06-07 10:01:05 UTC
Created attachment 1165564 [details]
Role-Access

Description of problem:
Unable to login when the user has only access to Chargeback feature

Version-Release number of selected component (if applicable):
5.6.0.9-rc2.20160531154046_b4e2f6d

How reproducible:
Very

Steps to Reproduce:
1. Manange a provider
2. Create a new role by limiting the access only to "Chargeback" product feature
3. Create a new group and user for this role
4. Try to login with the new user

Actual results:
Unable to login to the appliance - UI displays error message stating "The user's role is not authorized for any access, please contact the administrator!"
Refer the screen shots for further information

Expected results:
Should be able to login successfully and only chargeback menu should be displayed in the navigation.

Additional info:
evm.log file:
==============
[----] E, [2016-06-07T05:59:15.255323 #2998:c34510] ERROR -- : MIQ(dashboard_controller-authenticate): The user's role is not authorized for any access, please contact the administrator!

Comment 2 Ramesh A 2016-06-07 10:01:26 UTC
Created attachment 1165565 [details]
Login Error

Comment 4 Martin Povolny 2017-04-19 08:01:52 UTC
Confirming the bug.

Comment 5 Martin Povolny 2017-04-19 12:26:21 UTC
https://github.com/ManageIQ/manageiq/pull/14809

Comment 6 CFME Bot 2017-04-19 14:51:28 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/0a5ae7cfcd7e92830d8ffcd242fc3f034523e792

commit 0a5ae7cfcd7e92830d8ffcd242fc3f034523e792
Author:     Martin Povolny <mpovolny>
AuthorDate: Wed Apr 19 14:20:36 2017 +0200
Commit:     Martin Povolny <mpovolny>
CommitDate: Wed Apr 19 14:20:36 2017 +0200

    Add chargeback to shortcuts to allow access to chargeback only.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1343418

 db/fixtures/miq_shortcuts.yml | 5 +++++
 1 file changed, 5 insertions(+)