fixed crash on no permission manager

This commit is contained in:
WolverinDEV 2019-07-18 10:45:07 +02:00
parent a3baa8e5b4
commit 2177e51380

View File

@ -130,7 +130,7 @@ void ConnectedClient::updateChannelClientProperties(bool lock_channel_tree, bool
}
IconId iconId = 0;
{
if(this->clientPermissions) {
permission::v2::PermissionFlaggedValue value{0, false};
auto permission_flags = this->clientPermissions->permission_flags(permission::i_icon_id);
if(permission_flags.channel_specific && this->currentChannel) {