projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3821: attr_accessor not needed on collection "filename"
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
user.rb
diff --git
a/apps/workbench/app/models/user.rb
b/apps/workbench/app/models/user.rb
index 7aaa4fe93951ca831add8b7bae6778e251b8b871..8df16f29a44f84ed540ad1c292e9ee5e92da54e4 100644
(file)
--- a/
apps/workbench/app/models/user.rb
+++ b/
apps/workbench/app/models/user.rb
@@
-60,4
+60,11
@@
class User < ArvadosBase
params))
end
params))
end
+ def deletable?
+ false
+ end
+
+ def self.creatable?
+ current_user and current_user.is_admin
+ end
end
end