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/llfloaterbuyland.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/llfloaterbuyland.cpp')
-rw-r--r-- | indra/newview/llfloaterbuyland.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/indra/newview/llfloaterbuyland.cpp b/indra/newview/llfloaterbuyland.cpp index 83105ef27c..50b19a4221 100644 --- a/indra/newview/llfloaterbuyland.cpp +++ b/indra/newview/llfloaterbuyland.cpp @@ -459,10 +459,18 @@ void LLFloaterBuyLandUI::updateParcelInfo() return; } - if (!authorizedBuyer.isNull() && buyer != authorizedBuyer) + if (!authorizedBuyer.isNull() && buyer != authorizedBuyer) { - mCannotBuyReason = getString("set_to_sell_to_other"); - return; + // Maybe the parcel is set for sale to a group we are in.
+ bool authorized_group =
+ gAgent.hasPowerInGroup(authorizedBuyer,GP_LAND_DEED)
+ && gAgent.hasPowerInGroup(authorizedBuyer,GP_LAND_SET_SALE_INFO);
+
+ if (!authorized_group)
+ {
+ mCannotBuyReason = getString("set_to_sell_to_other");
+ return;
+ } } } else |