From 1c225c0e10c257ee31f12de9b1832c9668e80822 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 19 Apr 2020 00:23:18 +0200 Subject: [PATCH] Fixed permission stuff --- git-teaspeak | 2 +- server/src/client/command_handler/server.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/git-teaspeak b/git-teaspeak index a3dca4c..8fca354 160000 --- a/git-teaspeak +++ b/git-teaspeak @@ -1 +1 @@ -Subproject commit a3dca4c4cdfb229b7d7fa2f773cada37b614675e +Subproject commit 8fca354e65c2fd37414d1527e60800ed4669ea07 diff --git a/server/src/client/command_handler/server.cpp b/server/src/client/command_handler/server.cpp index 5a55e9b..967ecba 100644 --- a/server/src/client/command_handler/server.cpp +++ b/server/src/client/command_handler/server.cpp @@ -551,7 +551,7 @@ command_result ConnectedClient::handleCommandServerGroupAddClient(Command &cmd) auto continue_on_error = cmd.hasParm("continueonerror"); { auto permission_add_power = this->calculate_permission(permission::i_server_group_member_add_power, -1); - auto permission_self_add_power = this->calculate_permission(permission::i_server_group_member_add_power, -1); + auto permission_self_add_power = this->calculate_permission(permission::i_server_group_self_add_power, -1); for(auto index = 0; index < cmd.bulkCount(); index++) { auto group_id = cmd[index]["sgid"]; @@ -667,7 +667,7 @@ command_result ConnectedClient::handleCommandServerGroupDelClient(Command &cmd) auto continue_on_error = cmd.hasParm("continueonerror"); { auto permission_remove_power = this->calculate_permission(permission::i_server_group_member_remove_power, -1); - auto permission_self_remove_power = this->calculate_permission(permission::i_server_group_member_remove_power, -1); + auto permission_self_remove_power = this->calculate_permission(permission::i_server_group_self_remove_power, -1); for(auto index = 0; index < cmd.bulkCount(); index++) { auto group_id = cmd[index]["sgid"];