-
- 9 Posts
I now deleted all the files and folders in the core/cache-folder. But the problem still exists. Do you have any idea why nobody else has this problem? Maybe this is a result of the configuration in our system settings?
Thanks a lot again,
Inka
-
- 24,544 Posts
How are the users accessing the unpublished pages (e.g., Menu, direct entry of the URL in the browser, MODX link tag on the page, raw link code on a page)?
-
- 24,544 Posts
Ah . . . There are some serious problems with that tutorial.
What are the policies assigned to the Members user group in your ACL entries?
-
- 121 Posts
Are you using the latest version of Wayfinder?
The &cacheResults parameter is automatically set to true, but that thingie doesn’t work properly. Set it to false and you’re good to go.
-
- 24,544 Posts
Nothing obviously wrong there. I’m running low on ideas.
Look at the Load Only policy and make sure the view_unpublished permission is unchecked.
Look at the Administrator user group and make sure that (anonymous) is not a member.
See if (anonymous) is a member of any other user groups -- the (anonymous) user group should have no members.
BTW, I just checked and can confirm that unpublished resources are not viewable in the front end for not-logged-in users in my install of Revo.
-
- 24,544 Posts
I don’t see how that explains the problem, since the user should still be rejected from unpublished pages after the redirect to them.
That said, try this. Just above the following line:
// switch between http / https if necessary
Add this:
if ($resource->get('published') == false || $resource->get('deleted')) {
$modx->sendErrorPage();
}