diff options
| author | Spp <spp@jorge.gr> | 2013-08-30 15:53:29 +0200 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2013-08-30 15:53:29 +0200 |
| commit | 109188a203d1745888596cac3bc78f1a057d934e (patch) | |
| tree | 138ebbda031a4096bc3ffc954acf02b8c96d8753 /sql/updates/auth | |
| parent | 17e82480703ae8f2a7780e4c1319b81b14d1c8bf (diff) | |
Core/RBAC: Move account commands to RBAC (using individual permissions)
Diffstat (limited to 'sql/updates/auth')
| -rw-r--r-- | sql/updates/auth/2013_08_30_01_auth_misc.sql | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sql/updates/auth/2013_08_30_01_auth_misc.sql b/sql/updates/auth/2013_08_30_01_auth_misc.sql new file mode 100644 index 00000000000..743551163ce --- /dev/null +++ b/sql/updates/auth/2013_08_30_01_auth_misc.sql @@ -0,0 +1,28 @@ +-- Add new permissions +DELETE FROM `rbac_permissions` WHERE `id` BETWEEN 200 AND 216; +INSERT INTO `rbac_permissions` (`id`, `name`) VALUES +(217, 'Command: .account'), +(218, 'Command: .account addon'), +(219, 'Command: .account create'), +(220, 'Command: .account delete'), +(221, 'Command: .account lock'), +(222, 'Command: .account lock country'), +(223, 'Command: .account lock ip'), +(224, 'Command: .account onlinelist'), +(225, 'Command: .account password'), +(226, 'Command: .account set'), +(227, 'Command: .account set addon'), +(228, 'Command: .account set gmlevel'), +(229, 'Command: .account set password'); + +-- Add Permissions to "corresponding Commands Role" +DELETE FROM `rbac_role_permissions` WHERE `permissionId` BETWEEN 217 AND 229; +INSERT INTO `rbac_role_permissions` (`roleId`, `permissionId`) VALUES +(1, 217), +(2, 218), +(1, 221), +(1, 222), +(1, 223), +(1, 225), +(4, 226), +(4, 227); |
