diff options
author | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
commit | 7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd (patch) | |
tree | 0243666021de3ae6ac61a6c6f4e57d42771fe964 /linden/indra/newview/llfloaterregioninfo.cpp | |
parent | Applied BlockClickSit debug setting from Emerald to block sit click action (diff) | |
download | meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.zip meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.gz meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.bz2 meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.xz |
Merged in jacek/next
Diffstat (limited to 'linden/indra/newview/llfloaterregioninfo.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterregioninfo.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterregioninfo.cpp b/linden/indra/newview/llfloaterregioninfo.cpp index 6e0dba1..40907eb 100644 --- a/linden/indra/newview/llfloaterregioninfo.cpp +++ b/linden/indra/newview/llfloaterregioninfo.cpp | |||
@@ -3192,3 +3192,22 @@ bool LLDispatchSetEstateAccess::operator()( | |||
3192 | 3192 | ||
3193 | return true; | 3193 | return true; |
3194 | } | 3194 | } |
3195 | |||
3196 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
3197 | void LLFloaterRegionInfo::open() | ||
3198 | { | ||
3199 | // We'll allow access to the estate tools for estate managers (and for the sim owner) | ||
3200 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
3201 | { | ||
3202 | LLViewerRegion* pRegion = gAgent.getRegion(); | ||
3203 | if (!pRegion) | ||
3204 | return; | ||
3205 | |||
3206 | // Should be able to call LLRegion::canManageEstate() but then we can fake god like | ||
3207 | if ( (!pRegion->isEstateManager()) && (pRegion->getOwner() != gAgent.getID()) ) | ||
3208 | return; | ||
3209 | } | ||
3210 | |||
3211 | LLFloater::open(); | ||
3212 | } | ||
3213 | // [/RLVa:KB] | ||