diff --git a/Telegram/SourceFiles/profile/profile_block_settings.cpp b/Telegram/SourceFiles/profile/profile_block_settings.cpp index 07bbfa22dd..3084df239a 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; };