X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2556bf9a17d39e658f91cd9b180848526415ce92..8deda2012ea7e25610f2cbd0a271e131d9364503:/apps/workbench/app/views/application/_title_and_buttons.html.erb?ds=sidebyside 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 83d08f5527..4a40510dc4 100644 --- a/apps/workbench/app/views/application/_title_and_buttons.html.erb +++ b/apps/workbench/app/views/application/_title_and_buttons.html.erb @@ -31,8 +31,7 @@ Copy to project... <% end %> <% end %> - <% if @object.owner_uuid == current_user.uuid or current_user.is_admin or - (Group.find(@object.owner_uuid).writable_by.include?(current_user.uuid) rescue nil) %> + <% if (ArvadosBase.find(@object.owner_uuid).writable_by.include?(current_user.uuid) rescue nil) %> <%= link_to( choose_projects_path( title: "Move this #{object_class} to:",