Merge branch 'master' into origin-2035-arv-mount-tags-folders
[arvados.git] / services / api / app / models / arvados_model.rb
index 875f1c09b7f1ef07742abc8a65244cf57c8b5568..154929171fd42ab6485945e6d77e1390178f97c8 100644 (file)
@@ -168,7 +168,7 @@ class ArvadosModel < ActiveRecord::Base
   end
 
   def ensure_owner_uuid_is_permitted
-    return false if !current_user
+    raise PermissionDeniedError if !current_user
     self.owner_uuid ||= current_user.uuid
     if self.owner_uuid_changed?
       if current_user.uuid == self.owner_uuid or