[ARVADOS] created: 383a465ab0b7139bd5ce2663cc112c49e9c0bf26

git at public.curoverse.com git at public.curoverse.com
Tue Sep 23 16:27:14 EDT 2014


        at  383a465ab0b7139bd5ce2663cc112c49e9c0bf26 (commit)


commit 383a465ab0b7139bd5ce2663cc112c49e9c0bf26
Author: Tim Pierce <twp at curoverse.com>
Date:   Tue Sep 23 13:52:22 2014 -0400

    3901: bugfix: Workbench not showing repositories
    
    The user's /manage_account page shows repositories for which they have
    can_manage permission in addition to can_read or can_write.

diff --git a/apps/workbench/app/controllers/users_controller.rb b/apps/workbench/app/controllers/users_controller.rb
index 27f13b7..d49635e 100644
--- a/apps/workbench/app/controllers/users_controller.rb
+++ b/apps/workbench/app/controllers/users_controller.rb
@@ -240,7 +240,7 @@ class UsersController < ApplicationController
     Link.filter([['head_uuid', 'is_a', 'arvados#repository'],
                  ['tail_uuid', '=', current_user.uuid],
                  ['link_class', '=', 'permission'],
-                 ['name', 'in', ['can_write', 'can_read']],
+                 ['name', 'in', ['can_write', 'can_read', 'can_manage']],
                ]).
           each do |perm_link|
             repo_links << perm_link[:head_uuid]
diff --git a/sdk/python/bin/arv-get b/sdk/python/bin/arv-get
index 38a9823..a5af98e 100755
--- a/sdk/python/bin/arv-get
+++ b/sdk/python/bin/arv-get
@@ -140,7 +140,7 @@ if not get_prefix:
         except (IOError, OSError) as error:
             abort("can't write to '{}': {}".format(args.destination, error))
         except (arvados.errors.ApiError, arvados.errors.KeepReadError) as error:
-            abort("failed to download '{}': {}".format(collection, e))
+            abort("failed to download '{}': {}".format(collection, error))
     sys.exit(0)
 
 # Scan the collection. Make an array of (stream, file, local

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list