Automating Group Permissions

Permalink
Hi, c5 lovers.

I'm at it again with a project that's stretching my knowledge of the Concrete5 API. I'm trying to set up a monthly job that looks at the current month and allows certain user groups to gain Read access to a page. But I'm not sure exactly what command to use here.

What command to I use to set group access permissions, and what arguments do I pass? is it:

CollectionPermissions::setGroupAccess();


or

Page::updatePermissions([ $args = null]);


or

Page::updatePermissionsCollectionID ( $cParentIDString,  $npID);


What's the appropriate/efficient way of doing this? I wish there were just a little more description of the member functions in the API documentation.

clocktower
 
clocktower replied on at Permalink Reply
clocktower
Never mind, I found another thread just after posting this question.

Solution is detailed here.

http://www.concrete5.org/community/forums/customizing_c5/editor-use...