Documentation

Privilege
in package

Class to check permission for client portal.

Table of Contents

ACCOUNTS_RELATED_RECORDS  = 2
All records of account assigned directly to contact.
ACCOUNTS_RELATED_RECORDS_AND_LOWER_IN_HIERARCHY  = 3
All related records of account assigned directly to contact and accounts lower in hierarchy.
ACCOUNTS_RELATED_RECORDS_IN_HIERARCHY  = 4
All related records of account assigned directly to contact and accounts from hierarchy.
USER_PERMISSIONS  = 1
Permissions based on user.
isPermitted()  : bool
Function to check permission for a Module/Action/Record.

Constants

All records of account assigned directly to contact.

public mixed ACCOUNTS_RELATED_RECORDS = 2

All related records of account assigned directly to contact and accounts lower in hierarchy.

public mixed ACCOUNTS_RELATED_RECORDS_AND_LOWER_IN_HIERARCHY = 3

All related records of account assigned directly to contact and accounts from hierarchy.

public mixed ACCOUNTS_RELATED_RECORDS_IN_HIERARCHY = 4

USER_PERMISSIONS

Permissions based on user.

public mixed USER_PERMISSIONS = 1

Methods

isPermitted()

Function to check permission for a Module/Action/Record.

public static isPermitted(string $moduleName[, string $actionName = null ][, bool|int $record = false ][, mixed $userId = false ]) : bool
Parameters
$moduleName : string
$actionName : string = null
$record : bool|int = false
$userId : mixed = false
Tags
throws
Exception
Return values
bool

        

Search results