summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-04-06 09:53:15 +0200
committermr <mr@mrautenberg.de>2011-04-06 09:53:15 +0200
commit39226f45d9a64da6afed6e9f27d886f5bd5bc287 (patch)
treece9bbe068b8f28ec7144fb22782069e63cf6f62c
parentf19be7b802ae60d2250f7485fdf7f9117c9a65d6 (diff)
create policy after create new model
-rw-r--r--lazar.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lazar.rb b/lazar.rb
index ba85784..9c76bbb 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -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