From 3f27ba891ac4d032753b219b4b96d1ffbc9fb488 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:16 -0500 Subject: Second Life viewer sources 1.18.5.0-RC --- linden/indra/newview/llpanelgroupgeneral.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linden/indra/newview/llpanelgroupgeneral.cpp') diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp index 33dbcd7..3ad65b5 100644 --- a/linden/indra/newview/llpanelgroupgeneral.cpp +++ b/linden/indra/newview/llpanelgroupgeneral.cpp @@ -161,7 +161,7 @@ BOOL LLPanelGroupGeneral::postBuild() { mCtrlMature->setCommitCallback(onCommitAny); mCtrlMature->setCallbackUserData(this); - mCtrlMature->setVisible( gAgent.mAccess > SIM_ACCESS_PG ); + mCtrlMature->setVisible( !gAgent.isTeen() ); } mCtrlOpenEnrollment = (LLCheckBoxCtrl*) getChildByName("open_enrollement", recurse); @@ -476,7 +476,7 @@ bool LLPanelGroupGeneral::apply(LLString& mesg) if (mInsignia) gdatap->mInsigniaID = mInsignia->getImageAssetID(); if (mCtrlMature) { - if (gAgent.mAccess > SIM_ACCESS_PG) + if (!gAgent.isTeen()) { gdatap->mMaturePublish = mCtrlMature->get(); } @@ -639,7 +639,7 @@ void LLPanelGroupGeneral::update(LLGroupChange gc) { mCtrlMature->set(gdatap->mMaturePublish); mCtrlMature->setEnabled(mAllowEdit && can_change_ident); - mCtrlMature->setVisible( gAgent.mAccess > SIM_ACCESS_PG ); + mCtrlMature->setVisible( !gAgent.isTeen() ); } if (mCtrlOpenEnrollment) { -- cgit v1.1