Actions
Bug #3391
closedUnable to spoof templates as non-admin
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Description
In Foreman 1.3.0 it is not possible to spoof templates as non-admin users. It will just show a standard "We're sorry, but something went wrong." error message and throw exception in the log. Even with all ACL turned on the template will not be visible but as soon as you assign the user admin access the template can be spoofed. Log file attached.
Files
Updated by Dominic Cleal over 11 years ago
- Category set to Users, Roles and Permissions
Updated by Lukas Zapletal over 11 years ago
Hmmm I am not sure why we call authorize method even when it is not supposed to be called:
FILTERS.each do |f| define_method("#{f}_with_unattended") do send("#{f}_without_unattended") if params.keys.include?("spoof") end alias_method_chain f, :unattended end
Updated by Dominic Cleal about 11 years ago
- Is duplicate of Bug #2892: unattended spoof mode only work for an administrator added
Updated by Dominic Cleal about 11 years ago
- Status changed from New to Duplicate
Actions