This commit is contained in:
parent
cd244daf84
commit
96163cb07f
|
@ -0,0 +1,4 @@
|
|||
DELETE FROM `salix`.`ACL` WHERE model = 'MailAliasAccount';
|
||||
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
('MailAliasAccount', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
|
@ -0,0 +1,4 @@
|
|||
DELETE FROM `salix`.`ACL` WHERE model = 'MailForward';
|
||||
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
('MailForward', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
|
@ -0,0 +1,4 @@
|
|||
DELETE FROM `salix`.`ACL` WHERE model = 'Role';
|
||||
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||
VALUES
|
||||
('Role', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
|
|
@ -12,6 +12,7 @@ export default class Controller extends Section {
|
|||
.then(res => {
|
||||
this.isSubordinate = res.data;
|
||||
if (!this.isSubordinate) throw new UserError(`You don't have enough privileges`);
|
||||
|
||||
this.$.watcher.submit();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue