checkperm

Find out if the current user has a particular permission. The permission strings are shown in the ResourceSpace UI when managing group permissions.

Variable Description Data type
$perm * The permission string to query for string

Return values

TRUE if the user has the permission, FALSE if they don't.