Skip to content
Snippets Groups Projects
Commit f41d0601 authored by Sergei Litovchuk's avatar Sergei Litovchuk
Browse files

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

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
parent 59496719
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
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