Purpose
Retrieve a list of permission levels that a user has
Location
users/helpers/permissions.php
Parameters
# |
Parameter |
Data Type |
Required |
Description |
1 |
$user_id |
|
Yes |
undocumented |
Example
fetchUserPermissions(2)
Further Documentation:
This is generally an internal UserSpice function and is not usually used by developers.
Will return an array of objects. Each object will contain the id in the table user_permission_matches, the permission id, and the user id of the user with that permission level.
So, if you have a user with 10 permission levels, you will get an array of 10 objects.