Skip to content
Snippets Groups Projects

Acl testing

Merged Henrique Varella Ehrenfried requested to merge ACL-Testing into master
15 files
+ 4816
4200
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -16,12 +16,42 @@
@@ -16,12 +16,42 @@
},
},
"validations": [],
"validations": [],
"relations": {
"relations": {
"locations":{
"locations": {
"type": "hasMany",
"type": "hasMany",
"model": "geolocation",
"model": "geolocation",
"foreignKey": "category_id"
"foreignKey": "category_id"
 
},
 
"user": {
 
"type": "belongsTo",
 
"model": "end_user",
 
"foreignKey": "id"
}
}
},
},
"acls": [],
"acls": [
 
{
 
"accessType": "*",
 
"principalType": "ROLE",
 
"principalId": "$everyone",
 
"permission": "DENY"
 
},
 
{
 
"accessType": "READ",
 
"principalType": "ROLE",
 
"principalId": "$everyone",
 
"permission": "ALLOW"
 
},
 
{
 
"accessType": "*",
 
"principalType": "ROLE",
 
"principalId": "admin",
 
"permission": "ALLOW"
 
},
 
{
 
"accessType": "count",
 
"principalType": "ROLE",
 
"principalId": "$authenticated",
 
"permission": "ALLOW"
 
}
 
],
"methods": {}
"methods": {}
}
}
Loading