Bug 740964

Summary: Users/Roles: Should not be able to remove all roles from last/admin user
Product: Red Hat Satellite Reporter: Corey Welton <cwelton>
Component: WebUIAssignee: Partha Aji <paji>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: ehelms, gkhachik, mkoci, 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 17:58:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Corey Welton 2011-09-23 23:11:42 UTC
Description of problem:
All roles can be removed from admin user

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


How reproducible:


Steps to Reproduce:
1.  Login as admin
2.  Administration > Users > Admin > Roles & Permissions
3.  Remove all roles; Save Roles
4. Navigate elsewhere in UI.
  
Actual results:
Can only see dashboard. You're pretty much hosed.

Expected results:
Cannot remove admin rights from admin user.

Additional info:

Comment 1 Mike McCune 2011-09-28 21:24:55 UTC
Will attempt to fix in V1 where we add the following API/model rules:

* The Administrator role is read-only
* One user must have the Administrator role.

Comment 2 Mike McCune 2012-01-26 19:38:30 UTC
mass move to CFSE product.

Comment 5 Corey Welton 2012-02-17 21:47:43 UTC
QA Verified.