You are here

public function ChecklistapiChecklist::userHasAccess in Checklist API 8

Determines whether the current user has access to the checklist.

Parameters

string $operation: (optional) The operation to test access for. Possible values are "view", "edit", and "any". Defaults to "any".

Return value

bool Returns TRUE if the user has access, or FALSE if not.

File

src/ChecklistapiChecklist.php, line 323

Class

ChecklistapiChecklist
Defines the checklist class.

Namespace

Drupal\checklistapi

Code

public function userHasAccess($operation = 'any') {
  return checklistapi_checklist_access($this->id, $operation);
}