From 4d65294819866ae20c47a54ab771cd49f4583573 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 21 Oct 2014 11:07:31 +0200 Subject: fix disabling AA --- lib/authorization.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/authorization.rb b/lib/authorization.rb index 0502b37..e90feac 100644 --- a/lib/authorization.rb +++ b/lib/authorization.rb @@ -1,6 +1,6 @@ module OpenTox - if defined?($aa) and $aa[:uri] + if defined?($aa) and $aa.has_key?(:uri) AA = $aa[:uri] else AA = "https://opensso.in-silico.ch" #if not set in .opentox/conf/[SERVICE].rb @@ -334,6 +334,7 @@ module OpenTox # @param subjectid [String] # @return [Boolean] true if access granted, else otherwise def self.authorized?(uri, request_method) + return true if !AA request_method = request_method.to_sym if request_method if $aa[:free_request].include?(request_method) true -- cgit v1.2.3