Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
commit
d6fdd05493
7 files changed
+64
-10
No files matched your search
@@ -0,0 +1,24 @@
|
||||
/* cs_bf.cpp */
|
||||
|
||||
SET @id = 257;
|
||||
|
||||
-- Add new permissions
|
||||
DELETE FROM `rbac_permissions` WHERE `id` BETWEEN @id AND @id+5;
|
||||
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
|
||||
(@id+0, 'bf'),
|
||||
(@id+1, 'bf start'),
|
||||
(@id+2, 'bf stop'),
|
||||
(@id+3, 'bf switch'),
|
||||
(@id+4, 'bf timer'),
|
||||
(@id+5, 'bf enabled');
|
||||
|
||||
-- Add permissions to "corresponding Commands Role"
|
||||
DELETE FROM `rbac_role_permissions` WHERE `permissionId` BETWEEN @id AND @id+5;
|
||||
INSERT INTO `rbac_role_permissions` (`roleId`, `permissionId`) VALUES
|
||||
(4, @id+0),
|
||||
(4, @id+1),
|
||||
(4, @id+2),
|
||||
(4, @id+3),
|
||||
(4, @id+4),
|
||||
(4, @id+5);
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* cs_bf.cpp */
|
||||
|
||||
SET @id = 257;
|
||||
|
||||
-- Update command table with new RBAC permissions
|
||||
UPDATE `command` SET `permission` = @id+0 WHERE `name` = 'bf';
|
||||
UPDATE `command` SET `permission` = @id+1 WHERE `name` = 'bf start';
|
||||
UPDATE `command` SET `permission` = @id+2 WHERE `name` = 'bf stop';
|
||||
UPDATE `command` SET `permission` = @id+3 WHERE `name` = 'bf switch';
|
||||
UPDATE `command` SET `permission` = @id+4 WHERE `name` = 'bf timer';
|
||||
UPDATE `command` SET `permission` = @id+5 WHERE `name` = 'bf enabled';
|
||||
|
||||
Reference in new issue
Block a user