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-enginemaster
parent
59496719bb
commit
f41d06012b
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue