projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use symbol keys in the properties of permission links.
[arvados.git]
/
services
/
api
/
app
/
models
/
link.rb
diff --git
a/services/api/app/models/link.rb
b/services/api/app/models/link.rb
index 37b4c899f9fdaa97e9c41b7f92ace611befd833f..af3918551e441a2ccaea47ea67e19e8f23a73b1f 100644
(file)
--- a/
services/api/app/models/link.rb
+++ b/
services/api/app/models/link.rb
@@
-1,5
+1,5
@@
class Link < ArvadosModel
class Link < ArvadosModel
- include
Assign
Uuid
+ include
Has
Uuid
include KindAndEtag
include CommonApiTemplate
serialize :properties, Hash
include KindAndEtag
include CommonApiTemplate
serialize :properties, Hash
@@
-52,7
+52,7
@@
class Link < ArvadosModel
# All users can grant permissions on objects they own
head_obj = self.class.
# All users can grant permissions on objects they own
head_obj = self.class.
-
kind_class
(self.head_uuid).
+
resource_class_for_uuid
(self.head_uuid).
where('uuid=?',head_uuid).
first
if head_obj
where('uuid=?',head_uuid).
first
if head_obj