mirror of https://github.com/procxx/kepka.git
Only admin can unlink channel from the group.
This commit is contained in:
parent
65a36e49bd
commit
a49806bf79
|
@ -778,7 +778,9 @@ void Controller::fillManageSection() {
|
||||||
? false
|
? false
|
||||||
: channel->isBroadcast()
|
: channel->isBroadcast()
|
||||||
? channel->canEditInformation()
|
? channel->canEditInformation()
|
||||||
: (channel->linkedChat() && channel->canPinMessages());
|
: (channel->linkedChat()
|
||||||
|
&& channel->canPinMessages()
|
||||||
|
&& channel->adminRights() != 0);
|
||||||
}();
|
}();
|
||||||
|
|
||||||
AddSkip(_controls.buttonsLayout, 0);
|
AddSkip(_controls.buttonsLayout, 0);
|
||||||
|
|
Loading…
Reference in New Issue