Bug 1922111

Summary: user with only "register_hosts" role is able to see "Create Activation Key" button
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: Activation KeysAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.9.0CC: paji
Target Milestone: 6.9.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-10 18:56:44 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:
Attachments:
Description Flags
register host role - user can see Create Activation Key button none

Description Anand Agrawal 2021-01-29 09:30:06 UTC
Description of problem:

Create a non-admin user with only "register_hosts" role and then navigate to the activation key page. We can see the "Create Activation Key" button but while creating the activation key it doesn't succeed and neither it throws any error.

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

How reproducible:

Always
Steps to Reproduce:
1. Create a non admin user with only "register_host" role
2. Login with the above non-admin user.
3. Navigate to Content -> Activation key page.
4. You can see "Create Activation Key"
5. Fill in the name and description of the activation key and press submit to create
6. Activation key not created and No error message displayed.

Actual results:
"Create Activation Key" button is visible

Expected results:
"Create Activation Key" button should be disabled or invisible

Additional info:
Same is observed with only 'Viewer' role too.

Comment 1 Brad Buckingham 2021-02-04 12:38:29 UTC
Created attachment 1755059 [details]
register host role - user can see Create Activation Key button

Comment 2 Partha Aji 2021-02-10 18:56:44 UTC

*** This bug has been marked as a duplicate of bug 1922134 ***