refs #7406 changes sql, modelconfig model
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-05-27 14:28:13 +02:00
parent 208409acb2
commit 578b8a2c71
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,9 @@
-- Auto-generated SQL script. Actual values for binary/complex data types may differ - what you see is the default string representation of values.
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('TrainingCourse','*','*','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('TrainingCourseType','*','*','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('TrainingCenter','*','*','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Worker','__get_trainingCourse','*','ALLOW','ROLE','employee');

View File

@ -124,6 +124,15 @@
},
"Locker": {
"dataSource": "vn"
},
"TrainingCourse": {
"dataSource": "vn"
},
"TrainingCourseType": {
"dataSource": "vn"
},
"TrainingCenter": {
"dataSource": "vn"
}
}

View File

@ -1,5 +1,5 @@
{
"name": "trainingCourseType",
"name": "TrainingCourseType",
"description": "List of trainings",
"base": "VnModel",
"options": {
@ -27,7 +27,7 @@
},
"trainingCourseType": {
"type": "belongsTo",
"model": "trainingCourseType",
"model": "TrainingCourseType",
"foreignKey": "trainingCourseTypeFk"
},
"centerFk": {