Actions
Bug #13164
closedview_params is missing
Difficulty:
Triaged:
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1296662
Description of problem:
The view_params permission in the Parameter resource is missing. This prevents us from allowing users to be able to view parameters.
Version-Release number of selected component (if applicable):
6.1.5
How reproducible:
Repeatable:
Actual results:
- hammer filter available-permissions --resource-type Parameter
---|----------------|----------
ID | NAME | RESOURCE
---|----------------|----------
67 | create_params | Parameter
68 | edit_params | Parameter
69 | destroy_params | Parameter
---|----------------|----------
Expected results:
I'd expect to be assign the view_params permission to users (as edit_params is useless without this!).
Updated by Dominic Cleal about 9 years ago
Using Foreman 1.10.2-el7, I noticed that non-admins are unable to access parameters within the "Edit Locations" section when adding all parameter permissions from within the UI. Reviewing the filter permissions for the Parameters category, it appears the "view_params" permission does not show up which is needed for this feature to be shown to non-admins. I've added the view_params permission into the permissions table then added the view_params permission to the role and everything worked as expected :) insert into permissions (name,resource_type,created_at,updated_at) values ('view_params','Parameter',NOW(),NOW()); I'm unsure if this permission has been deprecated and needs to be altered within app/views/taxonomies/_form.html.erb or if we need to alter the seeds.d/03-permissions.rb to include the perm.
from foreman-dev. The use of view_params should probably be removed from this one view or implemented everywhere.
Updated by Ori Rabin almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset c7f55be1eff7519bf83327b23ad2f5e220f62dde.
Actions