mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/RBAC: Remove obsolete generic command permissions
Note: If you have any custom command, CHECK THE SQLS BEFORE APPLYING
This commit is contained in:
4
sql/updates/auth/2013_09_10_14_auth_misc.sql
Normal file
4
sql/updates/auth/2013_09_10_14_auth_misc.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Remove obsolete permissions
|
||||
|
||||
DELETE FROM `rbac_role_permissions` WHERE `permissionId` IN (7, 8, 9, 10, 12);
|
||||
DELETE FROM `rbac_permissions` WHERE `id` IN (7, 8, 9, 10, 12);
|
||||
@@ -3,7 +3,6 @@
|
||||
SET @id = 761;
|
||||
|
||||
-- Update command table with new RBAC permissions
|
||||
UPDATE `command` SET `permission` = @id+0 WHERE `name` = 'tele';
|
||||
UPDATE `command` SET `permission` = @id+0 WHERE `name` = 'ticket';
|
||||
UPDATE `command` SET `permission` = @id+1 WHERE `name` = 'ticket assign';
|
||||
UPDATE `command` SET `permission` = @id+2 WHERE `name` = 'ticket close';
|
||||
|
||||
2
sql/updates/world/2013_09_10_16_world_command.sql
Normal file
2
sql/updates/world/2013_09_10_16_world_command.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Update command table and remove obsolete permissions (0 = non existent permission)
|
||||
UPDATE `command` SET `permission` = 0 WHERE `permission` IN (7, 8, 9, 10, 12);
|
||||
Reference in New Issue
Block a user