summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2014-06-19 17:38:39 +0300
committerandreykproductengine <akleshchev@productengine.com>2014-06-19 17:38:39 +0300
commitf938c7f7ab914a72a4870b5321644f9d5965fb6c (patch)
treeeb852acbd3890a32a3372a87cadda54c428020b0
parentf924175da0acbb8a8884fff0740d416da9c2489c (diff)
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
-rwxr-xr-xindra/newview/llpanelgrouproles.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/llpanelgrouproles.cpp b/indra/newview/llpanelgrouproles.cpp
index 2fcaa5666e..b21e1747b3 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...