• Resolved roeyrdt

    (@roeyrdt)


    hi

    do you have php function that add permission to specific user

    like

    add_cluevo_permission($user_name,$item_id)

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘php add permission’ is closed to new replies.