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
/
authorized_key.rb
diff --git
a/apps/workbench/app/models/authorized_key.rb
b/apps/workbench/app/models/authorized_key.rb
index 62ee83238dae697bfaa72b71d3994d3077b86fde..b0c2fa2f02d892d4e86578ff778045a3d8a7adcd 100644
(file)
--- a/
apps/workbench/app/models/authorized_key.rb
+++ b/
apps/workbench/app/models/authorized_key.rb
@@
-1,9
+1,13
@@
class AuthorizedKey < ArvadosBase
class AuthorizedKey < ArvadosBase
- def attribute_editable?(attr)
- if
attr.to_s == 'authorized_user'
- current_user
and current_user
.is_admin
+ def attribute_editable?(attr
, ever=nil
)
+ if
(attr.to_s == 'authorized_user_uuid') and (not ever)
+ current_user
.andand
.is_admin
else
else
- super
(attr)
+ super
end
end
end
end
+
+ def self.creatable?
+ false
+ end
end
end