public function ChecklistapiChecklist::userHasAccess in Checklist API 7
Determines whether the current user has access to the checklist.
Parameters
string $operation: 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
- lib/
Drupal/ checklistapi/ ChecklistapiChecklist.php, line 279 - Class for Checklist API checklists.
Class
- ChecklistapiChecklist
- Defines the checklist class.
Code
public function userHasAccess($operation = 'any') {
return checklistapi_checklist_access($this->id, $operation);
}