summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2013-04-26 17:49:31 +0200
committerrautenberg <rautenberg@in-silico.ch>2013-04-26 17:49:31 +0200
commit4bc69e53be060e8de1d9938e94b3bb0938016a84 (patch)
tree18d14301db586ea4d26863a50a7537d9c17cd4b3 /lib
parentca4d31be29c811369f1ee3c14fdfa688cc4cb30a (diff)
remove policy check might not be the right one
Diffstat (limited to 'lib')
-rw-r--r--lib/dataset.rb1
-rw-r--r--lib/opentox.rb1
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