Bug 2139651

Summary: non-priv user can click create when have no permissions
Product: Container Native Virtualization (CNV) Reporter: Aviv Turgeman <aturgema>
Component: User ExperienceAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: gouyang
Target Milestone: ---   
Target Release: 4.12.0   
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: 2023-01-24 13:41:50 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
templates view none

Description Aviv Turgeman 2022-11-03 07:58:56 UTC
Created attachment 1921905 [details]
templates view

Description of problem:
a non-priv user can click create in Templates and VirtualMachines view while he gets an error to list these resources, and the create operation will fail

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


How reproducible:
100%

Steps to Reproduce:
1. navigate to Virtualiztion -> VirtualMachines / Templates
2. create dropdown / button exists -> if will proceed evantually at creation it will fail


Actual results:
Create dropdown / button appear in the UI

Expected results:
Create dropdown / button should be hidden in case of no permissions

Additional info:

Comment 2 Guohua Ouyang 2022-11-07 10:14:55 UTC
verified on v4.12.0-1652

Comment 7 errata-xmlrpc 2023-01-24 13:41:50 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 (Important: OpenShift Virtualization 4.12.0 Images security update), 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-2023:0408