You are here

class NodeRevisionAccessCheck in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Access/NodeRevisionAccessCheck.php \Drupal\multiversion\Access\NodeRevisionAccessCheck

Hierarchy

Expanded class hierarchy of NodeRevisionAccessCheck

File

src/Access/NodeRevisionAccessCheck.php, line 9

Namespace

Drupal\multiversion\Access
View source
class NodeRevisionAccessCheck extends CoreNodeRevisionAccessCheck {
  public function checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') {
    if ($op == 'view' || $op == 'update') {
      return parent::checkAccess($node, $account, $op);
    }
    else {
      return FALSE;
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NodeRevisionAccessCheck::$access protected property A static cache of access checks.
NodeRevisionAccessCheck::$nodeAccess protected property The node access control handler.
NodeRevisionAccessCheck::$nodeStorage protected property The node storage.
NodeRevisionAccessCheck::access public function Checks routing access for the node revision.
NodeRevisionAccessCheck::checkAccess public function Checks node revision access. Overrides NodeRevisionAccessCheck::checkAccess
NodeRevisionAccessCheck::__construct public function Constructs a new NodeRevisionAccessCheck.