Show blocked / restricted users to all admins.

This commit is contained in:
John Preston 2017-06-17 13:13:47 +03:00
parent 1b649299ff
commit 8fe56b9a7d
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ void SettingsWidget::refreshManageAdminsButton() {
void SettingsWidget::refreshManageBannedUsersButton() { void SettingsWidget::refreshManageBannedUsersButton() {
auto hasManageBannedUsers = [this] { auto hasManageBannedUsers = [this] {
if (auto channel = peer()->asMegagroup()) { if (auto channel = peer()->asMegagroup()) {
return channel->canBanMembers() && (channel->kickedCount() > 0); return channel->hasAdminRights() && (channel->kickedCount() > 0);
} }
return false; return false;
}; };
@ -154,7 +154,7 @@ void SettingsWidget::refreshManageBannedUsersButton() {
auto hasManageRestrictedUsers = [this] { auto hasManageRestrictedUsers = [this] {
if (auto channel = peer()->asMegagroup()) { if (auto channel = peer()->asMegagroup()) {
return channel->canBanMembers() && (channel->restrictedCount() > 0); return channel->hasAdminRights() && (channel->restrictedCount() > 0);
} }
return false; return false;
}; };