fix request comparison
authorrautenberg <rautenberg@in-silico.ch>
Fri, 30 Mar 2012 11:54:35 +0000 (13:54 +0200)
committerrautenberg <rautenberg@in-silico.ch>
Fri, 30 Mar 2012 11:54:35 +0000 (13:54 +0200)
lib/authorization.rb

index a6d584c..fd20f68 100644 (file)
@@ -312,6 +312,7 @@ module OpenTox
     # @param [String] subjectid
     # @return [Boolean] true if access granted, else otherwise
     def self.authorized?(uri, request_method, subjectid)
+      request_method = request_method.to_sym if request_method
       if $aa[:free_request].include?(request_method)
         #$logger.debug "authorized? >>true<< (request is free), method: #{request_method}, URI: #{uri}, subjectid: #{subjectid}"
         true