mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Rename document role to permission
This commit is contained in:
parent
93b95b9eca
commit
ad3f406876
5 changed files with 9 additions and 14 deletions
|
@ -4,7 +4,7 @@ export default ApplicationSerializer.extend({
|
|||
normalize(modelClass, resourceHash) {
|
||||
return {
|
||||
data: {
|
||||
id: resourceHash.userId ? resourceHash.userId : 0,
|
||||
id: resourceHash.whoId ? resourceHash.whoId : 0,
|
||||
type: modelClass.modelName,
|
||||
attributes: resourceHash
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue