Bug 1375854 - RBAC:List only those vms for which the user has access to for VM placement plan
Summary: RBAC:List only those vms for which the user has access to for VM placement plan
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.7.0
Assignee: Zita Nemeckova
QA Contact: Ramesh A
URL:
Whiteboard: rbac:ownership
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-14 06:18 UTC by Aziza Karol
Modified: 2017-01-04 13:00 UTC (History)
6 users (show)

Fixed In Version: 5.7.0.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-04 13:00:33 UTC
Category: Bug
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
all vms listed (109.35 KB, image/png)
2016-09-14 06:18 UTC, Aziza Karol
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0012 0 normal SHIPPED_LIVE CFME 5.7.0 bug fixes and enhancement update 2017-01-04 17:50:36 UTC

Description Aziza Karol 2016-09-14 06:18:56 UTC
Created attachment 1200731 [details]
all vms listed

Description of problem:


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

How reproducible:
100%

Steps to Reproduce:
1. As Admin, Navigate to Settings ==> Configuration ==> Access Control
2. Create a new role with "VM & Template Access Restriction" as  "Only User Owned".  Make sure all the module access is given in "Product Features (Editing)" i.e., Everything is checked
3. Create a new group with the above role
4. Create a new user with the above group
5. Set 2 vm ownership for this user.
5. Login with the newly created user and navigate to optimize->planning 
6. In reference VM selection, select "ALL VMs" from the drop down list and then choose a VM.

Actual results:
all the VMs are displayed. see attached screenshot

Expected results:
user should not have access to other VMs for plan calculations. should have access to only 2 vms for which the ownership is set.

Comment 3 Zita Nemeckova 2016-09-19 08:40:10 UTC
https://github.com/ManageIQ/manageiq/pull/11349

Comment 4 Ramesh A 2016-10-05 08:06:28 UTC
Good to go.  Verified and working fine in 5.7.0.3.20160927165516_075d0f3

Comment 6 errata-xmlrpc 2017-01-04 13:00:33 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, 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://rhn.redhat.com/errata/RHBA-2017-0012.html


Note You need to log in before you can comment on or make changes to this bug.