Actions
Bug #18042
openHost Compute Resource field does not honor view permissions
Status:
New
Priority:
Normal
Assignee:
-
Category:
Host creation
Target version:
-
Description
A user with limited view permissions for compute resources via scoped search can see eight compute resources + bare metal. The compute resources show page lists only three compute resources, which is the correct value.
Expected: The user would only see three compute resources in the select box when creating a new host.
Updated by Tomer Brisker almost 8 years ago
- Related to Feature #4477: Improve permissions on resources in host creation/editing form added
Updated by Marek Hulán almost 8 years ago
I'm not sure how this was supposed to work, it seems authorized call does not specify any permission https://github.com/theforeman/foreman/blob/develop/app/helpers/application_helper.rb#L458 to verify. Adding something like "view_#{...}" might help
Actions