feat: refs #5186 add acl & model
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-02-29 16:27:42 +01:00
parent 1927878184
commit 7b0bed209e
4 changed files with 29 additions and 12 deletions

View File

@ -44,7 +44,8 @@ ALTER TABLE IF EXISTS vn.saleGroupDetail ADD COLUMN editorFk INT;
ALTER TABLE vn.ticketLog ALTER TABLE vn.ticketLog
MODIFY COLUMN changedModel enum('Ticket', MODIFY COLUMN changedModel ENUM(
'Ticket',
'Sale', 'Sale',
'TicketWeekly', 'TicketWeekly',
'TicketTracking', 'TicketTracking',

View File

@ -0,0 +1,2 @@
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES ('ParkingLog', '*', 'READ', 'ALLOW', 'ROLE', 'employee');

View File

@ -0,0 +1,5 @@
{
"ParkingLog": {
"dataSource": "vn"
}
}

View File

@ -0,0 +1,9 @@
{
"name": "ParkingLog",
"base": "Log",
"options": {
"mysql": {
"table": "parkingLog"
}
}
}