diff options
author | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-18 17:58:27 -0700 |
commit | e4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch) | |
tree | 9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llfloaterregioninfo.cpp | |
parent | Started 1.3.0 branch (diff) | |
parent | Updated and added some Linux libs. (diff) | |
download | meta-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.cpp | 19 |
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) | ||
3278 | void 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] | ||