API docs     >     Extensions     >     FileExtension

FileExtension->checkPermission

Description

checkPermission ( $userId, $code )
Checks if a User owns a custom permission

Parameters

$userId
int
User Id
$code
string
Permission code (Identifier)