You are here

public function NodeAccess::canUserBypassNodeAccess in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 src/Service/NodeAccess.php \Drupal\permissions_by_term\Service\NodeAccess::canUserBypassNodeAccess()
2 calls to NodeAccess::canUserBypassNodeAccess()
NodeAccess::getGrantDelete in src/Service/NodeAccess.php
NodeAccess::getGrantUpdate in src/Service/NodeAccess.php

File

src/Service/NodeAccess.php, line 142

Class

NodeAccess
Class NodeAccess

Namespace

Drupal\permissions_by_term\Service

Code

public function canUserBypassNodeAccess($uid) {
  $user = $this
    ->getUserInstance($uid);
  if ($user
    ->hasPermission('bypass node access')) {
    return TRUE;
  }
  return FALSE;
}