public function NodeRevisionAccessCheck::checkAccess in Multiversion 8
Checks node revision access.
Parameters
\Drupal\node\NodeInterface $node: The node to check.
\Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed.
string $op: (optional) The specific operation being checked. Defaults to 'view.'
Return value
bool TRUE if the operation may be performed, FALSE otherwise.
Overrides NodeRevisionAccessCheck::checkAccess
File
- src/
Access/ NodeRevisionAccessCheck.php, line 11
Class
Namespace
Drupal\multiversion\AccessCode
public function checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') {
if ($op == 'view' || $op == 'update') {
return parent::checkAccess($node, $account, $op);
}
else {
return FALSE;
}
}