From 39226f45d9a64da6afed6e9f27d886f5bd5bc287 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 6 Apr 2011 09:53:15 +0200 Subject: create policy after create new model --- lazar.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3