aboutsummaryrefslogtreecommitdiff
path: root/sql/updates/world
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2013-08-30 15:53:29 +0200
committerSpp <spp@jorge.gr>2013-08-30 15:53:29 +0200
commit109188a203d1745888596cac3bc78f1a057d934e (patch)
tree138ebbda031a4096bc3ffc954acf02b8c96d8753 /sql/updates/world
parent17e82480703ae8f2a7780e4c1319b81b14d1c8bf (diff)
Core/RBAC: Move account commands to RBAC (using individual permissions)
Diffstat (limited to 'sql/updates/world')
-rw-r--r--sql/updates/world/2013_08_30_01_world_command.sql2
-rw-r--r--sql/updates/world/2013_08_30_04_world_command.sql14
2 files changed, 15 insertions, 1 deletions
diff --git a/sql/updates/world/2013_08_30_01_world_command.sql b/sql/updates/world/2013_08_30_01_world_command.sql
index 89f83d7e424..e786c85a118 100644
--- a/sql/updates/world/2013_08_30_01_world_command.sql
+++ b/sql/updates/world/2013_08_30_01_world_command.sql
@@ -1,4 +1,4 @@
-ALTER TABLE `command` CHANGE `security` `permission` UNSIGNED SMALLINT(5) DEFAULT 0 NOT NULL;
+ALTER TABLE `command` CHANGE `security` `permission` SMALLINT(5) UNSIGNED DEFAULT 0 NOT NULL;
-- Player commands
UPDATE `command` SET `permission` = 7 WHERE `permission` = 0;
diff --git a/sql/updates/world/2013_08_30_04_world_command.sql b/sql/updates/world/2013_08_30_04_world_command.sql
new file mode 100644
index 00000000000..c77f651f9e5
--- /dev/null
+++ b/sql/updates/world/2013_08_30_04_world_command.sql
@@ -0,0 +1,14 @@
+-- Update command table with new RBAC permissions
+UPDATE `command` SET `permission` = 217 WHERE `name` = 'account';
+UPDATE `command` SET `permission` = 218 WHERE `name` = 'account addon';
+UPDATE `command` SET `permission` = 219 WHERE `name` = 'account create';
+UPDATE `command` SET `permission` = 220 WHERE `name` = 'account delete';
+UPDATE `command` SET `permission` = 221 WHERE `name` = 'account lock';
+UPDATE `command` SET `permission` = 222 WHERE `name` = 'account lock country';
+UPDATE `command` SET `permission` = 223 WHERE `name` = 'account lock ip';
+UPDATE `command` SET `permission` = 224 WHERE `name` = 'account onlinelist';
+UPDATE `command` SET `permission` = 225 WHERE `name` = 'account password';
+UPDATE `command` SET `permission` = 226 WHERE `name` = 'account set';
+UPDATE `command` SET `permission` = 227 WHERE `name` = 'account set addon';
+UPDATE `command` SET `permission` = 228 WHERE `name` = 'account set gmlevel';
+UPDATE `command` SET `permission` = 229 WHERE `name` = 'account set password';