fixes #4074 Descargar ACL del usuario actual #1255

Open
pau wants to merge 40 commits from 4074-download-user-ACL into dev
2 changed files with 2 additions and 40 deletions
Showing only changes of commit 7a04818f3c - Show all commits

View File

@ -29,11 +29,12 @@ module.exports = Self => {
let ACLs = [];
for (let key in aclList) {
let acl = await models.acls.findOne({
let acl = await models.ACL.findOne({
where: {
principalId: key,
}
});
console.log(acl);
if (acl)
ACLs.push(acl);
}

View File

@ -1,39 +0,0 @@
{
"name": "acls",
"base": "VnModel",
"options": {
"mysql": {
"table": "salix.ACL"
}
},
"properties": {
"id": {
"type": "number",
"id": true
},
"model": {
"type": "string",
"required": true
},
"property": {
"type": "string",
"required": true
},
"accessType": {
"type": "string",
"required": true
},
"permission": {
"type": "string",
"required": true
},
"principalType": {
"type": "string",
"required": true
},
"principalId": {
"type": "string",
"required": true
}
}
}