mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
e10c928207
commit
2f702148e3
1 changed files with 3 additions and 1 deletions
|
@ -381,7 +381,9 @@ bool ChannelData::canViewBanned() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChannelData::canEditInformation() 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 {
|
bool ChannelData::canEditPermissions() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue