projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12318: Merge branch 'master' into 12318-update-libcloud-pin
[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 3b5b3083fc531b5b97c937bb326d3c32e377f202..10da22db69e4540f8d7027df94b3fd7d43d98279 100644
(file)
--- a/
apps/workbench/app/models/user.rb
+++ b/
apps/workbench/app/models/user.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class User < ArvadosBase
def initialize(*args)
super(*args)
class User < ArvadosBase
def initialize(*args)
super(*args)
@@
-63,4
+67,8
@@
class User < ArvadosBase
def deletable?
false
end
def deletable?
false
end
+
+ def self.creatable?
+ current_user and current_user.is_admin
+ end
end
end