diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-07-26 16:43:03 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-07-26 16:43:03 +0200 |
commit | 4b2acd3e1ded3819e6aea616180459c38ce3b4d3 (patch) | |
tree | dfafce25b619e77d93f55198af9b983872b16a7d /lib/opentox.rb | |
parent | 3e44b26115664c030f66e874b2ac2cc5453dcb82 (diff) |
adapt libs for new A&A
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index 762c1f7..5809b88 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -39,12 +39,12 @@ module OpenTox @accept = request.env['HTTP_ACCEPT'] @accept = "text/html" if @accept =~ /\*\/\*/ or request.env["HTTP_USER_AGENT"]=~/MSIE/ @accept = request.params["media"] if request.params["media"] - Authorization.check_policy(@uri, @subjectid) if env['REQUEST_METHOD'] == "PUT" && $aa[:uri] + Authorization.check_policy(@uri) if env['REQUEST_METHOD'] == "PUT" && $aa[:uri] response['Content-Type'] = @accept end after do - Authorization.check_policy(@uri, @subjectid) if env['REQUEST_METHOD'].to_s == "POST" && $aa[:uri] + Authorization.check_policy(@uri) if env['REQUEST_METHOD'].to_s == "POST" && $aa[:uri] end |