Only admin can unlink channel from the group.

This commit is contained in:
John Preston 2019-05-27 15:30:23 +02:00
parent 65a36e49bd
commit a49806bf79
1 changed files with 3 additions and 1 deletions

View File

@ -778,7 +778,9 @@ void Controller::fillManageSection() {
? false
: channel->isBroadcast()
? channel->canEditInformation()
: (channel->linkedChat() && channel->canPinMessages());
: (channel->linkedChat()
&& channel->canPinMessages()
&& channel->adminRights() != 0);
}();
AddSkip(_controls.buttonsLayout, 0);