aboutsummaryrefslogtreecommitdiff
path: root/sql/updates/world
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2013-08-31 21:02:14 +0100
committerNay <dnpd.dd@gmail.com>2013-08-31 21:02:14 +0100
commit16fcac19912122b134cc9b953b1de0741e3347d6 (patch)
tree9af089cc04fa345676e58dd0c1fe00f226f715ad /sql/updates/world
parente6761ea2aa7897eda7dafa0b11f17c26eb60e334 (diff)
Core/RBAC: Move bf commands to RBAC (using individual permissions)
Diffstat (limited to 'sql/updates/world')
-rw-r--r--sql/updates/world/2013_08_31_08_world_command.sql12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/updates/world/2013_08_31_08_world_command.sql b/sql/updates/world/2013_08_31_08_world_command.sql
new file mode 100644
index 00000000000..c48180f36b5
--- /dev/null
+++ b/sql/updates/world/2013_08_31_08_world_command.sql
@@ -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';
+