Bug 2019645

Summary: Create button is not removed on "Virtual Machines" page for view only user
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Leon Kladnitsky <lkladnit>
Severity: low Docs Contact:
Priority: medium    
Version: 4.10CC: aos-bugs, glekner, gouyang, lkladnit, tnisan
Target Milestone: ---Flags: lkladnit: needinfo-
Target Release: 4.10.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: 2022-03-10 16:24:41 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
create button is availble for view only user
none
existing buttons none

Description Guohua Ouyang 2021-11-03 02:32:52 UTC
Created attachment 1839477 [details]
create button is availble for view only user

Description of problem:
Create button and "Install migration tool" is not removed on "Virtual Machines" page while user has view only permission

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

How reproducible:
100%

Steps to Reproduce:
1. login with a view only user 'test' to namepsace 'default'
$ oc adm policy add-role-to-user view test -n default
2. navigate to virtualization
3.

Actual results:


Expected results:


Additional info:
Create button is removed on "Templates" page, but not "Virtual Machines" page.

Comment 2 Leon Kladnitsky 2022-01-02 13:28:59 UTC
The button is still present and active.

Comment 3 Leon Kladnitsky 2022-01-02 13:31:46 UTC
Created attachment 1848574 [details]
existing buttons

Comment 4 Leon Kladnitsky 2022-01-02 18:01:47 UTC
*** Bug 2036376 has been marked as a duplicate of this bug. ***

Comment 5 Leon Kladnitsky 2022-01-03 20:11:31 UTC
Verified on 4.10.0-0.ci-2022-01-03-042630

Comment 9 errata-xmlrpc 2022-03-10 16:24:41 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 (Moderate: OpenShift Container Platform 4.10.3 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-2022:0056