<![CDATA[ [permissions] How to disable editing of a container but children editable?! - My Forums]]> https://forums.modx.com/thread/?thread=82019 <![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534430
This is a 50 minute video of me explaining how the security permissions system works: https://vimeo.com/54360208.

This is a whole lot of information about the details (click on MODX -> MODX Security Permissions): http://bobsguides.com/.]]>
BobRay Nov 15, 2015, 02:36 PM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534430
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534419
I don't know neither why the list of Access policies is different between here and here :




Also, by default, I only have two roles : Member and Super User. I don't have "Content Editor" role, or we don't talk about the same thing.]]>
romainfallet Nov 15, 2015, 06:13 AM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534419
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534393
Be sure to flush both permissions and sessions before testing any changes, and never test in the same browser where you're logged into the Manager (even in a separate tab).

]]>
BobRay Nov 14, 2015, 12:41 AM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534393
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534378 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.]]>
romainfallet Nov 13, 2015, 02:47 PM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-534378
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-453371
]]>
BobRay Feb 01, 2013, 06:26 PM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-453371
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-453244 Quote from: BobRay at Feb 01, 2013, 03:31 AM
You need to put the container resource in another Resource Group (and remove it from the group with the editable resources).

Leave what you have for the Editable resources.

Connect the container's Resource Group to the Administrator group with a Resource Group Access ACL entry :

context: mgr
policy: Administrator
minimum role: Super User

That will hide it. To unhide it, but not allow editing, connect the container's resource Group to the Content Editors Group with another Resource Group Access ACL entry:

context: mgr
policy: Load, List, and View
minimum role: Content Editor

The container will be visible but not editable and the children should show up.

BobRay your my lifesaver; or better said your our website-saver. Our Digital-illiterates @work can't f~%k up anymore ;-) Look but no touch......hih.]]>
jambek2003 Feb 01, 2013, 03:56 AM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-453244
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-453201 sottwell Jan 31, 2013, 11:02 PM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable?page=2#dis-post-453201 <![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable#dis-post-453197
Leave what you have for the Editable resources.

Connect the container's Resource Group to the Administrator group with a Resource Group Access ACL entry :

context: mgr
policy: Administrator
minimum role: Super User

That will hide it. To unhide it, but not allow editing, connect the container's resource Group to the Content Editors Group with another Resource Group Access ACL entry:

context: mgr
policy: Load, List, and View
minimum role: Content Editor

The container will be visible but not editable and the children should show up.
]]>
BobRay Jan 31, 2013, 09:31 PM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable#dis-post-453197
<![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable#dis-post-453054 jambek2003 Jan 31, 2013, 01:12 AM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable#dis-post-453054 <![CDATA[Re: [permissions] How to disable editing of a container but children editable?!]]> https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable#dis-post-452972
]]>
BobRay Jan 30, 2013, 02:56 PM https://forums.modx.com/thread/82019/permissions-how-to-disable-editing-of-a-container-but-children-editable#dis-post-452972