From 75866dd6a6001a58ba6d8d52b4d4666b4e35bb19 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 6 Feb 2014 13:01:15 +0100 Subject: [PATCH] FIRE-12551: Enable group access by default again if public access is removed so we don't get surprised and unintentionally banned from the land! --- indra/newview/llfloaterland.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/indra/newview/llfloaterland.cpp b/indra/newview/llfloaterland.cpp index 5bb6af7af5..fc55da00d7 100755 --- a/indra/newview/llfloaterland.cpp +++ b/indra/newview/llfloaterland.cpp @@ -2822,6 +2822,19 @@ void LLPanelLandAccess::onCommitPublicAccess(LLUICtrl *ctrl, void *userdata) return; } + // FIRE-12551: Enable group access by default if public access is removed + // or we might end up banning ourself from the land! + bool public_access = self->getChild("public_access")->getValue().asBoolean(); + if (!public_access) + { + std::string group_name; + if (gCacheName->getGroupName(parcel->getGroupID(), group_name)) + { + self->getChild("GroupCheck")->setValue(public_access ? FALSE : TRUE); + } + } + // + onCommitAny(ctrl, userdata); }