projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
5417: add additional test updates to verify Run button status when input is not readable.
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
repository.rb
diff --git
a/apps/workbench/app/models/repository.rb
b/apps/workbench/app/models/repository.rb
index bed7edc6e7ae44a078d7befc3bda1fafe17a72ff..b062dda8610ae7feed3494befbcd42acea37ec4e 100644
(file)
--- a/
apps/workbench/app/models/repository.rb
+++ b/
apps/workbench/app/models/repository.rb
@@
-5,4
+5,11
@@
class Repository < ArvadosBase
def attributes_for_display
super.reject { |x| x[0] == 'fetch_url' }
end
def attributes_for_display
super.reject { |x| x[0] == 'fetch_url' }
end
+ def editable_attributes
+ if current_user.is_admin
+ super
+ else
+ []
+ end
+ end
end
end