Bug 2036376
| Summary: | Create VM action should be disabled when user has view only permission | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Leon Kladnitsky <lkladnit> | ||||
| Component: | Console Kubevirt Plugin | Assignee: | Matan Schatzman <mschatzm> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Leon Kladnitsky <lkladnit> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.10 | CC: | aos-bugs, gouyang, mschatzm | ||||
| Target Milestone: | --- | Flags: | lkladnit:
needinfo-
lkladnit: needinfo- |
||||
| Target Release: | --- | ||||||
| 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-01-02 18:01:47 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: |
|
||||||
Hi @lkladnit , @gouyang , I'm guessing this bug is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2019645 just with a different way to handle the situation? Please consider closing this bug is the solution in https://bugzilla.redhat.com/show_bug.cgi?id=2019645 is ok, it's already merged and can be tested. Thank you Matan Confirm *** This bug has been marked as a duplicate of bug 2019645 *** |
Created attachment 1848475 [details] Enabled menu Description of problem: "Create" action drop-down on "Virtual Machines" page is enabled for unprivileged user. Version-Release number of selected component (if applicable): 4.10 How reproducible: 100% Steps to Reproduce: 1. Create a VM in 'default' namespace 2. Give user 'test' view only permission to a namespace 'default': oc adm policy add-role-to-user view test -n default 3. Login to cluster as test and open "Virtual Machines" page. Actual results: "Create" action drop-down is enabled and allows to start VM/Template creation wizard Expected results: "Create" action drop-down is disabled, according to user permissions Additional info: