Bug 1341656
| Summary: | Viewer role user can manage Content Views | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> |
| Component: | Users & Roles | Assignee: | Zach Huntington-Meath <zhunting> |
| Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | bbuckingham, daviddavis, lpramuk, mhulan, mmccune |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://projects.theforeman.org/issues/15276 | ||
| Whiteboard: | |||
| Fixed In Version: | foreman-1.11.0.36-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-27 10:59:15 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: | |||
|
Description
Lukas Pramuk
2016-06-01 12:31:52 UTC
Created redmine issue http://projects.theforeman.org/issues/15276 from this bug Upstream bug component is Provisioning Upstream bug component is Users & Roles Moving to POST since upstream bug http://projects.theforeman.org/issues/15276 has been closed FailedQA.
@Sat6.2.0-Snap15
foreman-1.11.0.36-1.el7sat.noarch
/usr/share/foreman/seeds.d/03-roles.rb:3
Permission.all.map(&:name).select { |permission_name| permission_name.match /^view/ }.map(&:to_sym)
Fix is apparently at place but doesn't change anything, behavior is the same.
Is content-view page/items following roles?
How was this change tested? Properly, i.e. the same way as was reported in comment #0 0. Prepare some content, some CVs under admin account 1. Create a user with just Viewer role assigned 2. Login as viewer user and navigate to Content -> Content Views 3. Have a "good play" with admin content On other pages (Products) user has limited access. Only on CVs page he has not. >>> permission restrictions are applied but different pages handle it differently (or not at all) Was this on clean installation? note that the fix is in data seeding, on existing DB content_views permissions must be removed from viewer role manually. Verified on clean installation of Satellite @Sat6.2.0-Snap15.1 foreman-1.11.0.37-1.el7sat.noarch But it failed on Satellite upgraded from 6.1 It failed for upgraded CVs but also for CVs created after upgrade Could 03-roles.rb be seeded during Upgrades? (6.1 > 6.2) VERIFIED. for fresh Satellite install it is fixed. for upgraded one it is more tricky as an adminitrator could adjust filters for viewer roles already. Thus going to open new BZ where this will be addressed. Clearing NEEDSINFO as this bug should answer/fix the problem: https://bugzilla.redhat.com/show_bug.cgi?id=1346352 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://access.redhat.com/errata/RHBA-2016:1501 |