projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add "remove item from folder" buttons
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
group.rb
diff --git
a/apps/workbench/app/models/group.rb
b/apps/workbench/app/models/group.rb
index 53a9496c69d0eba2f457b8107cb67831edca55e4..dde6019e9ca4ed9a5d51978fe933fabee0208727 100644
(file)
--- a/
apps/workbench/app/models/group.rb
+++ b/
apps/workbench/app/models/group.rb
@@
-11,4
+11,10
@@
class Group < ArvadosBase
def class_for_display
group_class == 'folder' ? 'Folder' : super
end
+
+ def editable?
+ respond_to?(:writable_by) and
+ writable_by and
+ writable_by.index(current_user.uuid)
+ end
end