2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Show manage banned and restricted to creator.

This commit is contained in:
John Preston
2017-06-28 08:44:38 +03:00
parent 9e6f2a5d2e
commit b398444b91
2 changed files with 5 additions and 2 deletions

View File

@@ -892,6 +892,9 @@ public:
bool canViewAdmins() const {
return (isMegagroup() || hasAdminRights() || amCreator());
}
bool canViewBanned() const {
return (hasAdminRights() || amCreator());
}
bool canEditInformation() const {
return adminRights().is_change_info() || amCreator();
}