Fix manage channel actions visibility.

Fixes #5601.
This commit is contained in:
John Preston 2019-01-28 13:09:46 +03:00
parent e10c928207
commit 2f702148e3
1 changed files with 3 additions and 1 deletions

View File

@ -381,7 +381,9 @@ bool ChannelData::canViewBanned() const {
}
bool ChannelData::canEditInformation() const {
return !amRestricted(Restriction::f_change_info);
return isMegagroup()
? !amRestricted(Restriction::f_change_info)
: ((adminRights() & AdminRight::f_change_info) || amCreator());
}
bool ChannelData::canEditPermissions() const {