projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19166: Merge branch 'main'
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
authorized_key.rb
diff --git
a/apps/workbench/app/models/authorized_key.rb
b/apps/workbench/app/models/authorized_key.rb
index a56021682cbc953ff145d23acbbef664cf59060c..9809eef0e3db2fe849f9402db6838b8b06e86b8a 100644
(file)
--- a/
apps/workbench/app/models/authorized_key.rb
+++ b/
apps/workbench/app/models/authorized_key.rb
@@
-1,2
+1,17
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
class AuthorizedKey < ArvadosBase
class AuthorizedKey < ArvadosBase
+ def attribute_editable?(attr, ever=nil)
+ if (attr.to_s == 'authorized_user_uuid') and (not ever)
+ current_user.andand.is_admin
+ else
+ super
+ end
+ end
+
+ def self.creatable?
+ false
+ end
end
end