RESTfulAPI::api_access_config_check
Checks a model's api_access config.
api_access config can be: - unset|false, access is always denied - true, access is always granted - comma separated list of allowed HTTP methods
Signature
private function api_access_config_check(string
$className,
[string
$httpMethod = 'GET'] )
Parameters
$className
— string- Model's classname
$httpMethod
— string- API request HTTP method
Returns
- boolean
- true if access is granted, false otherwise