You are here

public function Resource::access in RESTful 7.2

Determine if user can access the handler.

Return value

bool TRUE if the current request has access to the requested resource. FALSE otherwise.

Overrides ResourceInterface::access

1 call to Resource::access()
FilesUpload__1_0::access in src/Plugin/resource/FilesUpload__1_0.php
If "File entity" module exists, determine access by its provided permissions otherwise, check if variable is set to allow anonymous users to upload. Defaults to authenticated user.
1 method overrides Resource::access()
FilesUpload__1_0::access in src/Plugin/resource/FilesUpload__1_0.php
If "File entity" module exists, determine access by its provided permissions otherwise, check if variable is set to allow anonymous users to upload. Defaults to authenticated user.

File

src/Plugin/resource/Resource.php, line 538
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function access() {
  return $this
    ->accessByAllowOrigin();
}