From 1e7738bd242ea1e91a134c78aca8349f2f585642 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 26 May 2021 13:48:42 +0200 Subject: [PATCH] Fixed missing join permission recalculation after server group update --- server/src/client/command_handler/server.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/client/command_handler/server.cpp b/server/src/client/command_handler/server.cpp index b069c45..226cf8e 100644 --- a/server/src/client/command_handler/server.cpp +++ b/server/src/client/command_handler/server.cpp @@ -474,6 +474,9 @@ command_result ConnectedClient::handleCommandServerGroupAddClient(Command &cmd) bool groups_changed; updated_client->update_displayed_client_groups(groups_changed, groups_changed); + /* join permissions have changed */ + updated_client->join_state_id++; + if(groups_changed) { updated_client->task_update_needed_permissions.enqueue(); updated_client->task_update_channel_client_properties.enqueue(); @@ -598,6 +601,9 @@ command_result ConnectedClient::handleCommandServerGroupDelClient(Command &cmd) bool groups_changed; updated_client->update_displayed_client_groups(groups_changed, groups_changed); + /* join permissions have changed */ + updated_client->join_state_id++; + if(groups_changed) { updated_client->task_update_needed_permissions.enqueue(); updated_client->task_update_channel_client_properties.enqueue();