removed acls model since its native to loopback
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
2e4e0b12ab
commit
7a04818f3c
|
@ -29,11 +29,12 @@ module.exports = Self => {
|
||||||
let ACLs = [];
|
let ACLs = [];
|
||||||
|
|
||||||
for (let key in aclList) {
|
for (let key in aclList) {
|
||||||
let acl = await models.acls.findOne({
|
let acl = await models.ACL.findOne({
|
||||||
where: {
|
where: {
|
||||||
principalId: key,
|
principalId: key,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
console.log(acl);
|
||||||
if (acl)
|
if (acl)
|
||||||
ACLs.push(acl);
|
ACLs.push(acl);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue