22 lines
978 B
MySQL
22 lines
978 B
MySQL
|
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
||
|
VALUES
|
||
|
('VnUser', '*', '*', 'ALLOW', 'ROLE', 'employee'),
|
||
|
('VnUser','acl','READ','ALLOW','ROLE','account'),
|
||
|
('VnUser','getCurrentUserData','READ','ALLOW','ROLE','account'),
|
||
|
('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'),
|
||
|
('Account','exists','READ','ALLOW','ROLE','account');
|
||
|
|
||
|
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
||
|
VALUES
|
||
|
('Account','exists','READ','ALLOW','ROLE','account');
|
||
|
|
||
|
DELETE FROM `salix`.`ACL` WHERE (model, property) = ('Account', 'acl');
|
||
|
DELETE FROM `salix`.`ACL` WHERE (model, property) = ('Account', 'getCurrentUserData');
|
||
|
DELETE FROM `salix`.`ACL` WHERE (model, property) = ('Account', 'changePassword');
|
||
|
DELETE FROM `salix`.`ACL` WHERE model = 'UserAccount';
|
||
|
|
||
|
UPDATE `hedera`.`imageCollection` t
|
||
|
SET t.model = 'VnUser'
|
||
|
WHERE t.id = 6;
|
||
|
|