diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-04-26 17:49:31 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-04-26 17:49:31 +0200 |
commit | 4bc69e53be060e8de1d9938e94b3bb0938016a84 (patch) | |
tree | 18d14301db586ea4d26863a50a7537d9c17cd4b3 | |
parent | ca4d31be29c811369f1ee3c14fdfa688cc4cb30a (diff) |
remove policy check might not be the right one
-rw-r--r-- | lib/dataset.rb | 1 | ||||
-rw-r--r-- | lib/opentox.rb | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index dd019a1..ec0abdb 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -123,7 +123,6 @@ module OpenTox # Adding data (@features and @compounds are also writable) def upload filename, wait=true - Authorization.check_policy(@uri, @subjectid) if $aa[:uri] uri = RestClientWrapper.put(@uri, {:file => File.new(filename)}, {:subjectid => @subjectid}) wait_for_task uri if URI.task?(uri) and wait metadata true diff --git a/lib/opentox.rb b/lib/opentox.rb index 80df507..040b0df 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -114,7 +114,6 @@ module OpenTox when 'application/rdf+xml' body = self.to_rdfxml end - Authorization.check_policy(@uri, @subjectid) if $aa[:uri] uri = RestClientWrapper.put @uri.to_s, body, { :content_type => mime_type, :subjectid => @subjectid} wait ? wait_for_task(uri) : uri end |