removed acls model since its native to loopback
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pau 2023-02-03 11:46:33 +01:00
parent 2e4e0b12ab
commit 7a04818f3c
2 changed files with 2 additions and 40 deletions

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
}
}
}