[ARVADOS] updated: 8699ba0baf2e346f0adc7ca79f0a8b129f56b9a7

git at public.curoverse.com git at public.curoverse.com
Thu Jul 30 10:04:53 EDT 2015


Summary of changes:
 services/api/app/controllers/arvados/v1/repositories_controller.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

       via  8699ba0baf2e346f0adc7ca79f0a8b129f56b9a7 (commit)
      from  747e22c9341d00a3f093298a979175166e2898a7 (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 8699ba0baf2e346f0adc7ca79f0a8b129f56b9a7
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Jul 30 10:04:02 2015 -0400

    6663: Admins and repository owners can_manage, not just can_write
    (even though that might not translate to any additional functions with
    the current gitolite config).

diff --git a/services/api/app/controllers/arvados/v1/repositories_controller.rb b/services/api/app/controllers/arvados/v1/repositories_controller.rb
index e61206d..4bf9a6a 100644
--- a/services/api/app/controllers/arvados/v1/repositories_controller.rb
+++ b/services/api/app/controllers/arvados/v1/repositories_controller.rb
@@ -62,12 +62,12 @@ class Arvados::V1::RepositoriesController < ApplicationController
           evidence << {name: perm.name, user_uuid: perm.tail_uuid}
         end
       end
-      # Owner of the repository, and all admins, can RW.
+      # Owner of the repository, and all admins, can do everything.
       ([repo.owner_uuid] | admins).each do |user_uuid|
         # Except: no permissions for inactive users, even if they own
         # repositories.
         next unless users[user_uuid]
-        evidence << {name: 'can_write', user_uuid: user_uuid}
+        evidence << {name: 'can_manage', user_uuid: user_uuid}
       end
       # Distill all the evidence about permissions on this repository
       # into one hash per user, of the form {'can_xxx' => true, ...}.

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list