[ARVADOS] updated: c3367d7b827035d0cfc3418bc028a67142696e13

git at public.curoverse.com git at public.curoverse.com
Mon May 19 17:01:30 EDT 2014


Summary of changes:
 services/api/app/models/arvados_model.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  c3367d7b827035d0cfc3418bc028a67142696e13 (commit)
      from  7ed1dcf8b0bfa8fc78f228a07b2318094b68abea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit c3367d7b827035d0cfc3418bc028a67142696e13
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon May 19 16:50:19 2014 -0400

    Fix crash when saving api_client_authorization during migration.

diff --git a/services/api/app/models/arvados_model.rb b/services/api/app/models/arvados_model.rb
index 4a717c4..bfd228e 100644
--- a/services/api/app/models/arvados_model.rb
+++ b/services/api/app/models/arvados_model.rb
@@ -187,7 +187,9 @@ class ArvadosModel < ActiveRecord::Base
 
   def ensure_owner_uuid_is_permitted
     raise PermissionDeniedError if !current_user
-    self.owner_uuid ||= current_user.uuid
+    if respond_to? :owner_uuid=
+      self.owner_uuid ||= current_user.uuid
+    end
     if self.owner_uuid_changed?
       if current_user.uuid == self.owner_uuid or
           current_user.can? write: self.owner_uuid

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list