public function RestfulCsrfTokenResource::access in RESTful 7
Overrides RestfulBase::access().
Expose resource only to authenticated users.
Overrides RestfulBase::access
File
- plugins/
restful/ csrf/ RestfulCsrfTokenResource.class.php, line 35 - Contains RestfulCsrfTokenResource.
Class
- RestfulCsrfTokenResource
- @file Contains RestfulCsrfTokenResource.
Code
public function access() {
$account = $this
->getAccount();
return (bool) $account->uid && parent::access();
}