From 8fe56b9a7d928f261f77fefe69df89753b169f8e Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Sat, 17 Jun 2017 13:13:47 +0300
Subject: [PATCH] Show blocked / restricted users to all admins.

---
 Telegram/SourceFiles/profile/profile_block_settings.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Telegram/SourceFiles/profile/profile_block_settings.cpp b/Telegram/SourceFiles/profile/profile_block_settings.cpp
index 07bbfa22d..3084df239 100644
--- a/Telegram/SourceFiles/profile/profile_block_settings.cpp
+++ b/Telegram/SourceFiles/profile/profile_block_settings.cpp
@@ -141,7 +141,7 @@ void SettingsWidget::refreshManageAdminsButton() {
 void SettingsWidget::refreshManageBannedUsersButton() {
 	auto hasManageBannedUsers = [this] {
 		if (auto channel = peer()->asMegagroup()) {
-			return channel->canBanMembers() && (channel->kickedCount() > 0);
+			return channel->hasAdminRights() && (channel->kickedCount() > 0);
 		}
 		return false;
 	};
@@ -154,7 +154,7 @@ void SettingsWidget::refreshManageBannedUsersButton() {
 
 	auto hasManageRestrictedUsers = [this] {
 		if (auto channel = peer()->asMegagroup()) {
-			return channel->canBanMembers() && (channel->restrictedCount() > 0);
+			return channel->hasAdminRights() && (channel->restrictedCount() > 0);
 		}
 		return false;
 	};