diff options
Diffstat (limited to 'linden/indra/newview/llpaneldirevents.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldirevents.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llpaneldirevents.cpp b/linden/indra/newview/llpaneldirevents.cpp index 861c54d..d8a4652 100644 --- a/linden/indra/newview/llpaneldirevents.cpp +++ b/linden/indra/newview/llpaneldirevents.cpp | |||
@@ -111,7 +111,7 @@ void LLPanelDirEvents::draw() | |||
111 | void LLPanelDirEvents::refresh() | 111 | void LLPanelDirEvents::refresh() |
112 | { | 112 | { |
113 | // You only have a choice if you are mature | 113 | // You only have a choice if you are mature |
114 | childSetVisible("incmature", gAgent.mAccess >= SIM_ACCESS_MATURE); | 114 | childSetVisible("incmature", !gAgent.isTeen()); |
115 | 115 | ||
116 | BOOL godlike = gAgent.isGodlike(); | 116 | BOOL godlike = gAgent.isGodlike(); |
117 | childSetVisible("Delete", godlike); | 117 | childSetVisible("Delete", godlike); |
@@ -182,7 +182,7 @@ void LLPanelDirEvents::performQueryOrDelete(U32 event_id) | |||
182 | setupNewSearch(); | 182 | setupNewSearch(); |
183 | 183 | ||
184 | U32 scope = DFQ_DATE_EVENTS; | 184 | U32 scope = DFQ_DATE_EVENTS; |
185 | if ( gAgent.mAccess <= SIM_ACCESS_PG) scope |= DFQ_PG_SIMS_ONLY; | 185 | if ( gAgent.isTeen()) scope |= DFQ_PG_SIMS_ONLY; |
186 | if ( !childGetValue("incmature").asBoolean() ) scope |= DFQ_PG_EVENTS_ONLY; | 186 | if ( !childGetValue("incmature").asBoolean() ) scope |= DFQ_PG_EVENTS_ONLY; |
187 | 187 | ||
188 | std::ostringstream params; | 188 | std::ostringstream params; |