I have a user that is an Administrator under the manager and a user that is restricted to only one resource. Is there a way to automatically have an Access Permission set when a new resource is created?
I'm not sure what you're trying to do, but you might check out the DefaultResourceGroup extra. It won't create an ACL entry, but it will put new resources in a resource group, which might do what you want if that resource group is already protected.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html
Well I learned by default all newly create resources are visible by everyone. And since I wanted the restricted user to only see 1 resource I had no clue how to hide newly created resources, from the restricted user, when the Administrator created them.
Late last night I read up on plugins and the OnDocFormSave. So when a new resource is created by the Admin is will also link it to only that access permission by writing a record in the modx_document_groups table. Hopefully that is an acceptable way of doing so.
By the way, your guides are a huge help Bob.
That's exactly what the DefaultResourceGroup plugin does.
http://bobsguides.com/defaultresourcegroup-tutorial.html
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html