Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1354572 - Remove the view_params permission in favor of edit_params
Summary: Remove the view_params permission in favor of edit_params
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Renzo Nuccitelli
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-11 15:27 UTC by Ivan Necas
Modified: 2019-09-26 16:19 UTC (History)
5 users (show)

Fixed In Version: foreman-1.11.0.46-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:21:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ivan Necas 2016-07-11 15:27:40 UTC
Description of problem:
The view_params permission was used in taxonomies to determine if the params in the taxonomy will be visible, The permissions is not used anywhere else. Therefore we should use the edit_params permissions to fix the params in taxonomies.

Version-Release number of selected component (if applicable):
6.2 beta 2

How reproducible:
always

Steps to Reproduce:
1. have non-admin user with edit_params permission
2. go to organization details


Actual results:
parameters tab missing

Expected results:
parameters tab is there and user is able to edit the params

Additional info:

Comment 4 Renzo Nuccitelli 2016-07-13 19:39:12 UTC
I could not reproduce the bug. What I've done:

1.Create a Role in Administer -> Roles
2.On Role creation set Resource type to Parameters
3.On Role creation add permission edit_params
4.On Role creation set Resource type to Organization
5.On Role creation add permissions edit_organizations and
view_organizations
6.Create a non admin user in Administer -> Users
7.Add previous role to this user
8.Login with previous user credentials
9.Go to Organization -> Manage Organizations
10.Choose Default Organization
11.Assert "Parameters" tab is present

I have also removed the edit_params permission and asserted "Parameters" tab was not visible anymore.

Comment 5 Renzo Nuccitelli 2016-07-13 19:41:29 UTC
(In reply to Renzo Nuccitelli from comment #4)
> I could not reproduce the bug. What I've done:
> 
> 1.Create a Role in Administer -> Roles
> 2.On Role creation set Resource type to Parameters
> 3.On Role creation add permission edit_params
> 4.On Role creation set Resource type to Organization
> 5.On Role creation add permissions edit_organizations and
> view_organizations
> 6.Create a non admin user in Administer -> Users
> 7.Add previous role to this user
> 8.Login with previous user credentials
> 9.Go to Organization -> Manage Organizations
> 10.Choose Default Organization
> 11.Assert "Parameters" tab is present
> 
> I have also removed the edit_params permission and asserted "Parameters" tab
> was not visible anymore.

In time, running rpm -q satellite I got the version:
satellite-6.2.0-20.0.el7sat.noarch

Comment 6 Bryan Kearney 2016-07-27 11:21:14 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://access.redhat.com/errata/RHBA-2016:1501


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