API docs     >     Users and Permissions     >     Permissions

Permissions->check

Description

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

Parameters

$userId
int
User Id
$permission
string
Permission (RREAD, RWRITE, RDELETE, RSUB, RSTAGE, RMODERATE, RCOMMENT, RSEND)
$objectId
int
(optional) Object Id

Returns

bool
TRUE if the User has Permissions, false if not