EXT-6384 FIXED check to disable 'Adult' setting when agent is not godlike but has admin menu enabled.

Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/508/

--HG--
branch : product-engine
master
Sergei Litovchuk 2010-06-03 23:02:44 +03:00
parent 59496719bb
commit f41d06012b
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ void LLFloaterPreference::onOpen(const LLSD& key)
if (can_choose_maturity)
{
// if they're not adult or a god, they shouldn't see the adult selection, so delete it
if (!gAgent.isAdult() && !gAgent.isGodlike())
if (!gAgent.isAdult() && !gAgent.isGodlikeWithoutAdminMenuFakery())
{
// we're going to remove the adult entry from the combo
LLScrollListCtrl* maturity_list = maturity_combo->findChild<LLScrollListCtrl>("ComboBox");