This question has been answered by multiple community members. See the first response.
Note: the secure content is not in a resource group. It is only secured via a snippet that checks whether the user is authenticated into the web context.Perhaps you should share the code that is doing this check...
<?php
if (!$modx->user->isAuthenticated('web') OR $modx->user->isMember("Students")) {
$output = '<p>We\'re sorry, you must be signed in as a parent to view this page. Please login <a href="[[~94]]">here</a>.';
return $output;
}
if ($modx->user->isAuthenticated('web') AND $modx->user->isMember("LBParents")) {
$offline = "<h2 style=\"color:red\">Sorry, South Campus forms are currently closed.</h2>";
$profile = $modx->user->getOne('Profile');
$fields = $profile->get('extended');
$schoolCampus = $fields['schoolCampus'];
if ($schoolCampus == "N") {
echo ('[[$lunchOrderProgramNC]]');
}
if ($schoolCampus == "S") {
echo ('[[$lunchOrderProgramTop]][[$lunchOrderProgramBottom]]');
}
}<?php
/* set debug to true temporarily and store the old value */
$oldDebug = $modx->setDebug(true);
if (!$modx->user->isAuthenticated('web') || $modx->user->isMember("Students")) {
$output = '<p>We\'re sorry, you must be signed in as a parent to view this page. Please login <a href="[[~94]]">here</a>.';
return $output;
}
/* return debug to previous value */
$modx->setDebug($oldDebug);
<?php
/* set debug and HTML logging temporarily and store the old values */
$oldDebug = $modx->setDebug(true);
$oldTarget = $modx->setLogTarget('HTML');
if (!$modx->user->isAuthenticated('web') || $modx->user->isMember("Students")) {
$output = '<p>We\'re sorry, you must be signed in as a parent to view this page. Please login <a href="[[~94]]">here</a>.';
return $output;
}
/* return debug and logTarget to previous value */
$modx->setDebug($oldDebug);
$modx->setLogTarget($oldTarget);