parent
e10c928207
commit
2f702148e3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue