[ARVADOS] updated: c99e40c18e4ba67f529fcd928eed76509dbda130

git at public.curoverse.com git at public.curoverse.com
Mon Feb 16 17:45:25 EST 2015


Summary of changes:
 apps/workbench/app/controllers/users_controller.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

       via  c99e40c18e4ba67f529fcd928eed76509dbda130 (commit)
      from  1578bb430ce005137f49233ef87fac34ebc51e2e (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 c99e40c18e4ba67f529fcd928eed76509dbda130
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Mon Feb 16 17:45:01 2015 -0500

    5189: a little cleanup

diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb
index 7443216..0ca5a85 100644
--- a/apps/workbench/app/controllers/users_controller.rb
+++ b/apps/workbench/app/controllers/users_controller.rb
@@ -241,11 +241,12 @@ class UsersController < ApplicationController
               ['link_class', '=', 'permission'],
              ])
 
+    owned_repositories = Repository.where(owner_uuid: current_user.uuid)
+
     @my_repositories = (Repository.where(uuid: repo_links.collect(&:head_uuid)) |
-                        Repository.where(owner_uuid: current_user.uuid)).
+                        owned_repositories).
                        uniq { |repo| repo.uuid }
 
-    owned_repositories = Repository.where(owner_uuid: current_user.uuid).collect(&:uuid)
 
     @repo_writable = {}
     repo_links.each do |link|
@@ -255,7 +256,7 @@ class UsersController < ApplicationController
     end
 
     owned_repositories.each do |repo|
-      @repo_writable[repo] = 'can_manage'
+      @repo_writable[repo.uuid] = 'can_manage'
     end
 
     # virtual machines the current user can login into

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list