2015-04-20 16:23:44 +00:00
|
|
|
{
|
2016-05-09 19:24:03 +00:00
|
|
|
"name": "accountWithReplaceOnPUTtrue",
|
|
|
|
"plural": "accounts-replacing",
|
2015-04-20 16:23:44 +00:00
|
|
|
"relations": {
|
|
|
|
"transactions": {
|
|
|
|
"model": "transaction",
|
|
|
|
"type": "hasMany"
|
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"model": "user",
|
|
|
|
"type": "belongsTo",
|
|
|
|
"foreignKey": "userId"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "ALLOW",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"permission": "DENY",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$owner",
|
|
|
|
"property": "deleteById"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"permission": "DENY",
|
|
|
|
"property": "find",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$dummy"
|
|
|
|
}
|
|
|
|
],
|
2016-05-09 19:24:03 +00:00
|
|
|
"properties": {},
|
|
|
|
"replaceOnPUT": true
|
2015-04-20 16:23:44 +00:00
|
|
|
}
|