public function RestfulWatchdogResource::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/ db_query/ watchdog/ 1.0/ RestfulWatchdogResource.class.php, line 41 - Contains RestfulEntityBase.
Class
- RestfulWatchdogResource
- @file Contains RestfulEntityBase.
Code
public function access() {
$account = $this
->getAccount();
return user_access('view site reports', $account);
}