summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/rest_authorization.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/network/rest_authorization.rb')
-rw-r--r--lib/puppet/network/rest_authorization.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/puppet/network/rest_authorization.rb b/lib/puppet/network/rest_authorization.rb
index d9a837050..e052245eb 100644
--- a/lib/puppet/network/rest_authorization.rb
+++ b/lib/puppet/network/rest_authorization.rb
@@ -3,21 +3,21 @@ require 'puppet/network/rest_authconfig'
module Puppet::Network
- module RestAuthorization
+ module RestAuthorization
- # Create our config object if necessary. If there's no configuration file
- # we install our defaults
- def authconfig
- @authconfig ||= Puppet::Network::RestAuthConfig.main
+ # Create our config object if necessary. If there's no configuration file
+ # we install our defaults
+ def authconfig
+ @authconfig ||= Puppet::Network::RestAuthConfig.main
- @authconfig
- end
+ @authconfig
+ end
- # Verify that our client has access.
- def check_authorization(request)
- authconfig.allowed?(request)
- end
+ # Verify that our client has access.
+ def check_authorization(request)
+ authconfig.allowed?(request)
end
+ end
end