[ARVADOS] created: 3c92c12e51c985e894851f90205aa02bb3895cdf

git at public.curoverse.com git at public.curoverse.com
Thu Aug 7 15:59:32 EDT 2014


        at  3c92c12e51c985e894851f90205aa02bb3895cdf (commit)


commit 3c92c12e51c985e894851f90205aa02bb3895cdf
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Aug 7 15:59:27 2014 -0400

    3525: Users can manage permissions on their own repositories

diff --git a/services/api/app/models/user.rb b/services/api/app/models/user.rb
index d27b4fe..0f4ea2a 100644
--- a/services/api/app/models/user.rb
+++ b/services/api/app/models/user.rb
@@ -312,7 +312,7 @@ class User < ArvadosModel
       repo_perms = Link.where(tail_uuid: self.uuid,
                               head_uuid: repo[:uuid],
                               link_class: 'permission',
-                              name: 'can_write')
+                              name: 'can_manage')
       if repo_perms.any?
         logger.warn "User already has repository access " +
             repo_perms.collect { |p| p[:uuid] }.inspect

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list