Skip to content
Snippets Groups Projects
Commit 62214e08 authored by Yuri Chebotarev's avatar Yuri Chebotarev
Browse files

fix EXT-6998 Group creator has no rights to view group owned land

reviewded Mike Antipov
https://codereview.productengine.com/secondlife/r/319/

--HG--
branch : product-engine
parent ca07973e
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,7 @@ class LLPanelGroupLandMoney::impl
std::string mCantViewParcelsText;
std::string mCantViewAccountsText;
std::string mEmptyParcelsText;
};
//*******************************************
......@@ -452,6 +453,7 @@ void LLPanelGroupLandMoney::impl::processGroupLand(LLMessageSystem* msg)
// This power was removed to make group roles simpler
//if ( !gAgent.hasPowerInGroup(mGroupID, GP_LAND_VIEW_OWNED) ) return;
if (!gAgent.isInGroup(mPanel.mGroupID)) return;
mGroupParcelsp->setCommentText(mEmptyParcelsText);
std::string name;
std::string desc;
......@@ -696,6 +698,7 @@ BOOL LLPanelGroupLandMoney::postBuild()
mImplementationp->mCantViewParcelsText = getString("cant_view_group_land_text");
mImplementationp->mCantViewAccountsText = getString("cant_view_group_accounting_text");
mImplementationp->mEmptyParcelsText = getString("epmty_view_group_land_text");
if ( mImplementationp->mMapButtonp )
{
......
......@@ -16,6 +16,10 @@
name="cant_view_group_land_text">
You don't have permission to view group owned land
</panel.string>
<panel.string
name="epmty_view_group_land_text">
No entries
</panel.string>
<panel.string
name="cant_view_group_accounting_text">
You don&apos;t have permission to view the group&apos;s accounting information.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment