diff options
Diffstat (limited to '')
-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] | ||