Commit 525a46c9 authored by jhodgdon's avatar jhodgdon

Issue #2318981 by er.pushpinderrana, grisendo: Make hook_node_grants and...

Issue #2318981 by er.pushpinderrana, grisendo: Make hook_node_grants and hook_node_access_records sample function bodies consistent
parent 00c5a646
......@@ -82,7 +82,7 @@ function hook_node_grants(\Drupal\Core\Session\AccountInterface $account, $op) {
if ($account->hasPermission('access private content')) {
$grants['example'] = array(1);
}
$grants['example_owner'] = array($account->id());
$grants['example_author'] = array($account->id());
return $grants;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment