#9670 export acl fix test
This commit is contained in:
parent
9cb97662d7
commit
cd89550678
|
@ -7,7 +7,7 @@ describe('Client activeWorkersWithRole', () => {
|
|||
|
||||
let isSalesPerson = await app.models.Account.hasRole(result[0].id, 'salesPerson');
|
||||
|
||||
expect(result.length).toEqual(10);
|
||||
expect(result.length).toEqual(11);
|
||||
expect(isSalesPerson).toBeTruthy();
|
||||
});
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ describe('Client listWorkers', () => {
|
|||
.then(result => {
|
||||
let amountOfEmployees = Object.keys(result).length;
|
||||
|
||||
expect(amountOfEmployees).toEqual(43);
|
||||
expect(amountOfEmployees).toEqual(44);
|
||||
done();
|
||||
})
|
||||
.catch(done.fail);
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('Zone','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('ZoneGeo','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('ZoneCalendar','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('ZoneIncluded','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('LabourHoliday','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('LabourHolidayLegend','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('LabourHolidayType','*','READ','ALLOW','ROLE','employee');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('Zone','*','WRITE','ALLOW','ROLE','deliveryBoss');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('ZoneCalendar','*','WRITE','ALLOW','ROLE','deliveryBoss');
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('ZoneIncluded','*','WRITE','ALLOW','ROLE','deliveryBoss');
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue