Created attachment 1839479 [details] template action list for view only user Description of problem: "Remove favorite" and "Create new Template" should be disabled in template action list for view only user 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. go to template list page and check template action list Actual results: "Remove favorite" and "Create new Template" is enabled Expected results: "Remove favorite" and "Create new Template" is disabled. Additional info:
"Remove favorite" is only in kebab button list, the detail action list don't see it.
Due to complexity, the fix will be tracked in Jira: https://issues.redhat.com/browse/CNV-14855
Reopen this as it's not fixed by bz2028106
In latest master non-admin user cannot list templates even after giving access to view default. datasources.cdi.kubevirt.io is forbidden: User "test" cannot list resource "datasources" in API group "cdi.kubevirt.io" at the cluster scope
(In reply to Gilad Lekner from comment #4) > In latest master non-admin user cannot list templates even after giving > access to view default. > > datasources.cdi.kubevirt.io is forbidden: User "test" cannot list resource > "datasources" in API group "cdi.kubevirt.io" at the cluster scope It's bug #2034243 - regular user cant load template list
Verified on 4.10.0-0.ci-2022-01-03-042630
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