Fixed permission notify client disconnect
This commit is contained in:
parent
e47d38da79
commit
383fab15a6
@ -564,6 +564,11 @@ bool ConnectedClient::notifyClientNeededPermissions() {
|
||||
cmd[index++]["permvalue"] = value.second.has_value ? value.second.value : 0;
|
||||
}
|
||||
|
||||
if(index == 0) {
|
||||
cmd[index]["permid"] = permission::i_client_talk_power;
|
||||
cmd[index++]["permvalue"] = 0;
|
||||
}
|
||||
|
||||
this->sendCommand(cmd);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user