Hi
I’ve got resources that anonymous users are not allowed to “view”.
However, I want them to see the (long)title of the protected resources (in gray rather than in black) in the file list. And when they click on the link, they should be sent to the unauthorized_page. Therefore, I gave them the “load only” permission for these protected files.
I created a resource/user group and acls to make everything work as expected.
The first lines of the snippet that checks the view permission of the resources are:
$resourceID = $modx->getOption('id', $scriptProperties);
$resource = $modx->getObject('modResource', $resourceID);
Strangely enough, Safari cannot set the $resource variable - while Chrome and Firefox work as expected.
if (!isset($resource)) {
$modx->log(modX::LOG_LEVEL_ERROR, '[checkPermission] $resource variable not set');
return;
}
If I test the file listing in Safari I get messages in the error log. If I do the same in Chrome/Firefox everything works as expected.
Why is that? How do I make Safari work as intended?
Thanks for your help
Ludo