projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
336e990
)
3193: add head_uuid is a arvados#repository filter when looking for recpositories.
author
radhika <radhika@curoverse.com>
Tue, 29 Jul 2014 17:44:13 +0000
(13:44 -0400)
committer
radhika <radhika@curoverse.com>
Tue, 29 Jul 2014 17:44:13 +0000
(13:44 -0400)
apps/workbench/app/controllers/users_controller.rb
patch
|
blob
|
history
diff --git
a/apps/workbench/app/controllers/users_controller.rb
b/apps/workbench/app/controllers/users_controller.rb
index d578631e9c4ba0a9339235a89d21d924279addea..836c1852421f4131d41a8e075d11cc4c224c8421 100644
(file)
--- a/
apps/workbench/app/controllers/users_controller.rb
+++ b/
apps/workbench/app/controllers/users_controller.rb
@@
-213,9
+213,11
@@
class UsersController < ApplicationController
def manage_account
# repositories current user can read / write
repo_links = []
- Link.where(tail_uuid: current_user.uuid,
- link_class: 'permission',
- name: ['can_write', 'can_read']).
+ Link.filter([['head_uuid', 'is_a', 'arvados#repository'],
+ ['tail_uuid', '=', current_user.uuid],
+ ['link_class', '=', 'permission'],
+ ['name', 'in', ['can_write', 'can_read']],
+ ]).
each do |perm_link|
repo_links << perm_link[:head_uuid]
end