diff options
author | mr <mr@mrautenberg.de> | 2011-05-23 13:34:10 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-23 13:34:10 +0200 |
commit | fa7f4a4825af56d885c07ab537c10e2f82932fc1 (patch) | |
tree | 587bf25aafb0456edb3df1012c0bd668dc8744ae | |
parent | 808707dde710023e585e2db8fe257e6c03c28a88 (diff) | |
parent | e78f2e64f61be2e5b550170dda2ad48e6ec62630 (diff) |
Merge branch 'release/2.0.0'v2.0.0
-rw-r--r-- | application.rb | 2 | ||||
-rw-r--r-- | lazar.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 866a267..79cddf0 100644 --- a/application.rb +++ b/application.rb @@ -1,5 +1,5 @@ require 'rubygems' -gem "opentox-ruby", "~> 1" +gem "opentox-ruby", "~> 2" require 'opentox-ruby' set :lock, true @@ -46,6 +46,7 @@ post '/?' do # create model lazar = YAML.load request.env["rack.input"].read lazar.uri = @uri File.open(@yaml_file,"w+"){|f| f.puts lazar.to_yaml} + OpenTox::Authorization.check_policy(@uri, @subjectid) if File.exists? @yaml_file response['Content-Type'] = 'text/uri-list' @uri end |