private function NodeAccess::getGrantUpdate in Permissions by Term 8
File
- src/
Service/ NodeAccess.php, line 183
Class
- NodeAccess
- Class NodeAccess
Namespace
Drupal\permissions_by_term\ServiceCode
private function getGrantUpdate($uid, $nodeType, $nid) {
if ($this
->canUserBypassNodeAccess($uid)) {
return 1;
}
if ($this
->canUserUpdateNode($uid, $nodeType, $nid)) {
return 1;
}
return 0;
}