diff options
| author | Kelly Washington <kelly@lindenlab.com> | 2011-05-10 08:40:00 -0700 |
|---|---|---|
| committer | Kelly Washington <kelly@lindenlab.com> | 2011-05-10 08:40:00 -0700 |
| commit | 56e471c3991c52f1aab37a82d88fc8ad9634483f (patch) | |
| tree | 24906c7b8849548543abe29762ae2085c928ab2e /indra/newview/llviewerparcelmgr.cpp | |
| parent | a5118ccd6721afdf4f8c71cba6007eb7be4d7c19 (diff) | |
ER-480 Viewer work for abandoned land.
* Support group members with the right powers buying land set for sale to a group
* Add dialogs for abandoned land related notifications.
Diffstat (limited to 'indra/newview/llviewerparcelmgr.cpp')
| -rw-r--r-- | indra/newview/llviewerparcelmgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llviewerparcelmgr.cpp b/indra/newview/llviewerparcelmgr.cpp index e84e4a859a..c84a14f62c 100644 --- a/indra/newview/llviewerparcelmgr.cpp +++ b/indra/newview/llviewerparcelmgr.cpp @@ -2200,7 +2200,10 @@ bool LLViewerParcelMgr::canAgentBuyParcel(LLParcel* parcel, bool forGroup) const = parcelOwner == (forGroup ? gAgent.getGroupID() : gAgent.getID()); bool isAuthorized - = (authorizeBuyer.isNull() || (gAgent.getID() == authorizeBuyer)); + = (authorizeBuyer.isNull()
+ || (gAgent.getID() == authorizeBuyer)
+ || (gAgent.hasPowerInGroup(authorizeBuyer,GP_LAND_DEED)
+ && gAgent.hasPowerInGroup(authorizeBuyer,GP_LAND_SET_SALE_INFO))); return isForSale && !isOwner && isAuthorized && isEmpowered; } |
