DELETE FROM `salix`.`ACL` WHERE id=7;

INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
    VALUES
        ('Client', 'setRating', 'WRITE', 'ALLOW', 'ROLE', 'financial');

INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
	VALUES
        ('Client', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'addressesPropagateRe', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'canBeInvoiced', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'canCreateTicket', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'consumption', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'createAddress', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'createWithUser', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'extendedListFilter', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'getAverageInvoiced', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'getCard', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'getDebt', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'getMana', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'transactions', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'hasCustomerRole', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'isValidClient', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'lastActiveTickets', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'sendSms', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'setPassword', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'summary', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'updateAddress', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'updateFiscalData', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'uploadFile', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'campaignMetricsPdf', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'campaignMetricsEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'clientWelcomeHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'clientWelcomeEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'printerSetupHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'printerSetupEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'sepaCoreEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'letterDebtorPdf', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'letterDebtorStHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'letterDebtorStEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'letterDebtorNdHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'letterDebtorNdEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'clientDebtStatementPdf', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'clientDebtStatementHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'clientDebtStatementEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'creditRequestPdf', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'creditRequestHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'creditRequestEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'incotermsAuthorizationPdf', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'incotermsAuthorizationHtml', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'incotermsAuthorizationEmail', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'consumptionSendQueued', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'filter', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'getClientOrSupplierReference', '*', 'ALLOW', 'ROLE', 'employee'),
        ('Client', 'upsert', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'create', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'replaceById', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'updateAttributes', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'updateAttributes', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'deleteById', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'replaceOrCreate', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'updateAll', '*', 'ALLOW', 'ROLE', 'employee'),
		('Client', 'upsertWithWhere', '*', 'ALLOW', 'ROLE', 'employee');
