You are here

private function NodeAccess::getGrantDelete in Permissions by Term 8

File

src/Service/NodeAccess.php, line 171

Class

NodeAccess
Class NodeAccess

Namespace

Drupal\permissions_by_term\Service

Code

private function getGrantDelete($uid, $nodeType, $nid) {
  if ($this
    ->canUserBypassNodeAccess($uid)) {
    return 1;
  }
  if ($this
    ->canUserDeleteNode($uid, $nodeType, $nid)) {
    return 1;
  }
  return 0;
}