API docs     >     Users and Permissions     >     User

User->checkPermission

Description

checkPermission ( $permission )
Checks if a permission is set for this User

Parameters

$permission
string
Permission to check (RREAD, RWRITE, RDELETE, RSUB, RSTAGE, RMODERATE, RCOMMENT, RSEND)

Returns

bool
TRUE if the permission is set or FALSE if the permission is not set