From f938c7f7ab914a72a4870b5321644f9d5965fb6c Mon Sep 17 00:00:00 2001
From: andreykproductengine <akleshchev@productengine.com>
Date: Thu, 19 Jun 2014 17:38:39 +0300
Subject: [PATCH] MAINT-4174 FIXED "Ban Resident(s)" button in Banned residents
 tab is active for members without ban permissions, after viewing 'Banned
 Residents' tab in a group where they do have ban permissions

---
 indra/newview/llpanelgrouproles.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/indra/newview/llpanelgrouproles.cpp b/indra/newview/llpanelgrouproles.cpp
index 2fcaa5666e8..b21e1747b39 100755
--- a/indra/newview/llpanelgrouproles.cpp
+++ b/indra/newview/llpanelgrouproles.cpp
@@ -2875,10 +2875,7 @@ void LLPanelGroupBanListSubTab::activate()
 	mBanList->deselectAllItems();
 	mDeleteBanButton->setEnabled(FALSE);
 
-	if (gAgent.hasPowerInGroup(mGroupID, GP_GROUP_BAN_ACCESS))
-	{
-		mCreateBanButton->setEnabled(TRUE);
-	}
+	mCreateBanButton->setEnabled(gAgent.hasPowerInGroup(mGroupID, GP_GROUP_BAN_ACCESS));
 
 	// BAKER: Should I really request everytime activate() is called?
 	//		  Perhaps I should only do it on a force refresh, or if an action on the list happens...
-- 
GitLab