Merge pull request '#7828 makeCorrectCalls' (!2955) from 7828-makeCorrectCalls into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2955
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Jorge Penadés 2024-09-16 10:26:49 +00:00
commit f1a8e206b5
3 changed files with 18 additions and 10 deletions

View File

@ -0,0 +1,4 @@
-- Place your SQL code here
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES ('WorkerTimeControlMail', 'count', 'READ', 'ALLOW', 'ROLE', 'employee'),
('Worker', '__get__mail', 'READ', 'ALLOW', 'ROLE', 'hr');

View File

@ -32,13 +32,5 @@
"sendedCounter": {
"type": "number"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "employee",
"permission": "ALLOW"
}
]
}
}

View File

@ -130,6 +130,11 @@
"type": "hasMany",
"model": "TrainingCourse",
"foreignKey": "workerFk"
},
"mail": {
"type": "hasMany",
"model": "WorkerTimeControlMail",
"foreignKey": "workerFk"
}
},
"acls": [
@ -139,6 +144,13 @@
"permission": "ALLOW",
"principalType": "ROLE",
"principalId": "$owner"
},
{
"property": "__get__mail",
"accessType": "READ",
"permission": "ALLOW",
"principalType": "ROLE",
"principalId": "$owner"
}
],
"scopes": {