Fixed missing join permission recalculation after server group update
This commit is contained in:
parent
bfeee49507
commit
1e7738bd24
@ -474,6 +474,9 @@ command_result ConnectedClient::handleCommandServerGroupAddClient(Command &cmd)
|
|||||||
bool groups_changed;
|
bool groups_changed;
|
||||||
updated_client->update_displayed_client_groups(groups_changed, groups_changed);
|
updated_client->update_displayed_client_groups(groups_changed, groups_changed);
|
||||||
|
|
||||||
|
/* join permissions have changed */
|
||||||
|
updated_client->join_state_id++;
|
||||||
|
|
||||||
if(groups_changed) {
|
if(groups_changed) {
|
||||||
updated_client->task_update_needed_permissions.enqueue();
|
updated_client->task_update_needed_permissions.enqueue();
|
||||||
updated_client->task_update_channel_client_properties.enqueue();
|
updated_client->task_update_channel_client_properties.enqueue();
|
||||||
@ -598,6 +601,9 @@ command_result ConnectedClient::handleCommandServerGroupDelClient(Command &cmd)
|
|||||||
bool groups_changed;
|
bool groups_changed;
|
||||||
updated_client->update_displayed_client_groups(groups_changed, groups_changed);
|
updated_client->update_displayed_client_groups(groups_changed, groups_changed);
|
||||||
|
|
||||||
|
/* join permissions have changed */
|
||||||
|
updated_client->join_state_id++;
|
||||||
|
|
||||||
if(groups_changed) {
|
if(groups_changed) {
|
||||||
updated_client->task_update_needed_permissions.enqueue();
|
updated_client->task_update_needed_permissions.enqueue();
|
||||||
updated_client->task_update_channel_client_properties.enqueue();
|
updated_client->task_update_channel_client_properties.enqueue();
|
||||||
|
Loading…
Reference in New Issue
Block a user