projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4363: Merge branch 'master' into 4363-less-filename-munging
[arvados.git]
/
apps
/
workbench
/
app
/
views
/
application
/
_title_and_buttons.html.erb
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 83d08f55276a5c29df97f39d65a54c6010f71124..4a40510dc41956cd665f7f8cdfff7236aeeee939 100644
(file)
--- 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
@@
<i class="fa fa-fw fa-copy"></i> Copy to project...
<% end %>
<% end %>
<i class="fa fa-fw fa-copy"></i> 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:",
<%= link_to(
choose_projects_path(
title: "Move this #{object_class} to:",