feat: refs #7119 update vehicle permissions and enhance vehicle model with new fields
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
3ea67675da
commit
3a449896cd
|
@ -6,18 +6,23 @@ INSERT INTO salix.ACL (model, property, accessType, permission, principalType, p
|
||||||
('Vehicle', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
('Vehicle', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
('Vehicle', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
('Vehicle', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
('Vehicle', 'findById', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
('Vehicle', 'findById', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
|
('Vehicle', 'findById', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
|
('Vehicle', '__get__active', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||||
('Vehicle', 'updateAttributes', 'WRITE', 'ALLOW', 'ROLE', 'administrative'),
|
('Vehicle', 'updateAttributes', 'WRITE', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
('Vehicle', 'updateAttributes', 'WRITE', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
('Vehicle', 'updateAttributes', 'WRITE', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
|
('Vehicle', 'deleteById', 'WRITE', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
|
('Vehicle', 'deleteById', 'WRITE', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
|
('Vehicle', 'create', 'WRITE', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
|
('Vehicle', 'create', 'WRITE', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
('BankPolicy', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
('BankPolicy', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
('BankPolicy', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
('BankPolicy', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
('VehicleState', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
('VehicleState', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative'),
|
||||||
('VehicleState', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
('VehicleState', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
('Ppe', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative' ),
|
('Ppe', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative' ),
|
||||||
('Ppe', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant' ),
|
('Ppe', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant' ),
|
||||||
('Vehicle', 'deleteById', 'WRITE', 'ALLOW', 'ROLE', 'administrative'),
|
|
||||||
('Vehicle', 'deleteById', 'WRITE', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
|
||||||
('VehicleType', 'find', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
('VehicleType', 'find', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
||||||
('Vehicle', '__get__active', 'READ', 'ALLOW', 'ROLE', 'employee');
|
('DeliveryPoint', 'find', 'READ', 'ALLOW', 'ROLE', 'deliveryAssistant'),
|
||||||
|
('DeliveryPoint', 'find', 'READ', 'ALLOW', 'ROLE', 'administrative');
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS vehicleType (
|
CREATE TABLE IF NOT EXISTS vehicleType (
|
||||||
id INT(11) PRIMARY KEY AUTO_INCREMENT,
|
id INT(11) PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
|
|
@ -48,6 +48,9 @@
|
||||||
"import": {
|
"import": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
"importCooler": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
"vin": {
|
"vin": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
@ -56,6 +59,9 @@
|
||||||
},
|
},
|
||||||
"vehicleTypeFk": {
|
"vehicleTypeFk": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
|
},
|
||||||
|
"deliveryPointFk": {
|
||||||
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relations": {
|
"relations": {
|
||||||
|
|
Loading…
Reference in New Issue