Метод | Описание | |
---|---|---|
checkPermission ( string | DataObject $model, DataObject | null $member = null, string $httpMethod ) : boolean | Checks if a given DataObject or Class can be accessed with a given API request by a Member |
public checkPermission ( string | DataObject $model, DataObject | null $member = null, string $httpMethod ) : boolean | ||
$model | string | DataObject | Model's classname or DataObject to check permission for |
$member | DataObject | null | Member to check permission agains |
$httpMethod | string | API request HTTP method |
Результат | boolean | true or false if permission was given or not |