Fixed permission stuff
This commit is contained in:
parent
2bdead3676
commit
1c225c0e10
@ -1 +1 @@
|
||||
Subproject commit a3dca4c4cdfb229b7d7fa2f773cada37b614675e
|
||||
Subproject commit 8fca354e65c2fd37414d1527e60800ed4669ea07
|
@ -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"];
|
||||
|
Loading…
Reference in New Issue
Block a user