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
/
authorized_key.rb
diff --git
a/apps/workbench/app/models/authorized_key.rb
b/apps/workbench/app/models/authorized_key.rb
index a56021682cbc953ff145d23acbbef664cf59060c..d84adea44f1832360b03ac5edc09a5cc10371a08 100644
(file)
--- a/
apps/workbench/app/models/authorized_key.rb
+++ b/
apps/workbench/app/models/authorized_key.rb
@@
-1,2
+1,13
@@
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?
+ current_user
+ end
end
end