Created attachment 1839478 [details]
create VM button on template page
Description of problem:
Permission error should pop-up immediately while clicking "Create VM" button on template page for view only user, just like what it's done on "Add source" button.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. login with a view only user
$ oc adm policy add-role-to-user view test -n default
2. on template list page, select a template and click "Create VM" button
view only user can continue after clicking "Create VM"
Permission error should pop-up immediately while clicking "Create VM" button
This policy is also applied when a project admin user who has edit permission logged in.
1. create a nonprivilege user, ref: https://github.com/openshift/console/blob/master/test-prow-e2e.sh#L52
2. login and create a project
3. navigate to template list page
4. click "Create VM"
it pops up the error immediately too, however in this situation, the user has edit permission in their own project which should not popup such error.
Assign the bug back because of the regression problem found.
Set the severity to high as it causes regression problem, project admin cannot use "Create VM" to create vm.
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.