Project

General

Profile

« Previous | Next » 

Revision 3cdaa292

Added by Dmitri Dolguikh about 10 years ago

Fixes #4851: a SmartProxy.with_features scope replaces feature-specific scopes generated during class loading

View differences:

app/controllers/concerns/foreman/controller/smart_proxy_auth.rb
# Permits registered puppetmasters or a user with permission
def require_puppetmaster_or_login
if !Setting[:restrict_registered_puppetmasters] or auth_smart_proxy(SmartProxy.puppet_proxies+SmartProxy.chefproxy_proxies, Setting[:require_ssl_puppetmasters])
if !Setting[:restrict_registered_puppetmasters] or auth_smart_proxy(SmartProxy.with_features("Puppet", "Chef Proxy"), Setting[:require_ssl_puppetmasters])
set_admin_user
return true
end

Also available in: Unified diff