API docs     >     Users and Permissions     >     Privileges

Privileges->check

Description

check ( $userId, $permission )
Checks if a User owns a specific Permission for a specific Object

Parameters

$userId
int
User Id
$permission
string
Privilege name

Returns

bool
TRUE if the User has Permissions, false if not