public function NodeAccess::canUserBypassNodeAccess in Permissions by Term 8.2
Same name and namespace in other branches
- 8 src/Service/NodeAccess.php \Drupal\permissions_by_term\Service\NodeAccess::canUserBypassNodeAccess()
File
- src/Service/ NodeAccess.php, line 121 
Class
- NodeAccess
- Class NodeAccess
Namespace
Drupal\permissions_by_term\ServiceCode
public function canUserBypassNodeAccess($uid) {
  $user = $this
    ->getUserInstance($uid);
  if ($user
    ->hasPermission('bypass node access')) {
    return TRUE;
  }
  return FALSE;
}