public function RestfulVariableResource::access in RESTful 7
Determine if user can access the handler.
Return value
bool TRUE if the current request has access to the requested resource. FALSE otherwise.
Overrides RestfulBase::access
File
- modules/
restful_example/ plugins/ restful/ variable/ 1.0/ RestfulVariableResource.class.php, line 27 - Contains \RestfulQueryVariable
Class
- RestfulVariableResource
- @file Contains \RestfulQueryVariable
Code
public function access() {
$account = $this
->getAccount();
return user_access('adminsiter site configuration', $account);
}