Is this still works on 2.4.2 ? I can't make it work, maybe I'm not good enough with access policies... But the access policies changed since this post, am I wrong ?
I wrote a little plugin that prevent accessing containers by simply reload the manager dashboard when we try to edit a container.
Here is the plugin code, fired on "OnManagerPageBeforeRender" event :
<?php
$id = $controller->scriptProperties['id'];
$action = $controller->scriptProperties['a'];
$modx = $controller->modx;
$doc = $modx->getObject('modResource', $id);
if ($action === 'resource/update' && $doc->get('isfolder') === true) {
$url = MODX_MANAGER_URL;
$modx->sendRedirect($url);
}
unset($id, $action, $modx, $doc, $url);
But it's not really the way I need this to work, I just don't want that nothing happens when I click on a resource container in the resources tree.
[ed. note: romainfallet last edited this post 8 years, 5 months ago.]