aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterregioninfo.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llfloaterregioninfo.cpp
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/llfloaterregioninfo.cpp')
-rw-r--r--linden/indra/newview/llfloaterregioninfo.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterregioninfo.cpp b/linden/indra/newview/llfloaterregioninfo.cpp
index d7b7c9c..08d845b 100644
--- a/linden/indra/newview/llfloaterregioninfo.cpp
+++ b/linden/indra/newview/llfloaterregioninfo.cpp
@@ -3273,3 +3273,22 @@ bool LLDispatchSetEstateAccess::operator()(
3273 3273
3274 return true; 3274 return true;
3275} 3275}
3276
3277// [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a)
3278void LLFloaterRegionInfo::open()
3279{
3280 // We'll allow access to the estate tools for estate managers (and for the sim owner)
3281 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC))
3282 {
3283 LLViewerRegion* pRegion = gAgent.getRegion();
3284 if (!pRegion)
3285 return;
3286
3287 // Should be able to call LLRegion::canManageEstate() but then we can fake god like
3288 if ( (!pRegion->isEstateManager()) && (pRegion->getOwner() != gAgent.getID()) )
3289 return;
3290 }
3291
3292 LLFloater::open();
3293}
3294// [/RLVa:KB]