Core/RBAC: Remove obsolete generic command permissions

Note: If you have any custom command, CHECK THE SQLS BEFORE APPLYING
This commit is contained in:
Spp
2013-09-10 15:35:10 +02:00
parent 78363e11b5
commit 953575abfa
4 changed files with 12 additions and 6 deletions

View 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);

View File

@@ -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';

View 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);