[ARVADOS] created: c64623a82ad3aa43bbdef0b0ad8f6737d0b5b626

git at public.curoverse.com git at public.curoverse.com
Fri Oct 3 15:34:46 EDT 2014


        at  c64623a82ad3aa43bbdef0b0ad8f6737d0b5b626 (commit)


commit c64623a82ad3aa43bbdef0b0ad8f6737d0b5b626
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Oct 3 15:34:18 2014 -0400

    4026: Use ArvadosBase.find() instead of Group.find() -- owner_uuid could be a User.

diff --git a/apps/workbench/app/views/application/_title_and_buttons.html.erb b/apps/workbench/app/views/application/_title_and_buttons.html.erb
index e1ec160..a38a3ea 100644
--- a/apps/workbench/app/views/application/_title_and_buttons.html.erb
+++ b/apps/workbench/app/views/application/_title_and_buttons.html.erb
@@ -29,7 +29,7 @@
         <i class="fa fa-fw fa-copy"></i> Copy to project...
       <% end %>
     <% end %>
-    <% if @object.owner_uuid == current_user.uuid or (Group.find(@object.owner_uuid).writable_by.include?(current_user.uuid) rescue nil) %>
+    <% if @object.owner_uuid == current_user.uuid or (ArvadosBase.find(@object.owner_uuid).writable_by.include?(current_user.uuid) rescue nil) %>
       <%= link_to(
           choose_projects_path(
            title: 'Move to project...',

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list