diff options
author | Richard Linden <none@none> | 2011-05-12 11:38:32 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2011-05-12 11:38:32 -0700 |
commit | e18f200243b5d9e5adba244634ecdaa4ac7da8dc (patch) | |
tree | e39dbd23c35f1c43f48f17aa02c162ae2e58c789 /indra/newview/llfloaterbuyland.cpp | |
parent | 524345ab0e87953abcea023ebc274f0440ef2e85 (diff) | |
parent | 6fcf9e4817a5c245f7779dd030b0ba75dab10e5e (diff) |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience
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 |