# File lib/puppet/network/rest_authconfig.rb, line 34 34: def allowed?(request) 35: read 36: 37: # we're splitting the request in part because 38: # fail_on_deny could as well be called in the XMLRPC context 39: # with a ClientRequest. 40: 41: if authorization_failure_exception = @rights.is_request_forbidden_and_why?(request) 42: Puppet.warning("Denying access: #{authorization_failure_exception}") 43: raise authorization_failure_exception 44: end 45: end