Plugin Author
CLUEVO
(@cluevo)
Hi roeyrdt,
yes, there is a function you can use:
cluevo_add_user_perms_to_item($intItemId, $mixedUsers, $intLevel)
$intItemId is the item ID of the tree element, you can see this on the tree page when you hover over an item.
$mixedUsers can either be a user ID or an array of user IDs.
$intLevel is the access level. Where 0 is no access, 1 is visible (item can be seen but can’t be opened) and 2 is full access.
The same function is also available for groups where you can pass group IDs instead of user IDs.