Revision 8abee388
Added by Ohad Levy about 10 years ago
app/controllers/unattended_controller.rb | ||
---|---|---|
FILTERS = [:require_ssl, :require_login, :session_expiry, :update_activity_time, :set_taxonomy, :authorize]
|
||
FILTERS.each do |f|
|
||
define_method("#{f}_with_unattended") do
|
||
send("#{f}_without_unattended") if params.keys.include?("spoof")
|
||
send("#{f}_without_unattended") if params.key?(:spoof) or params.key?(:hostname)
|
||
end
|
||
alias_method_chain f, :unattended
|
||
end
|
Also available in: Unified diff
fixes #5436 - provisioning templates are world accessible
(cherry picked from commit aa0ebe8eef311875695135c1714cb09225e8cd13)