Commit c49207d9 authored by jhodgdon's avatar jhodgdon
Browse files

Issue #1469758 by chertzog: Fix typo in sample hook_node_grants_alter function

parent efc46895
...@@ -383,7 +383,7 @@ function hook_node_grants_alter(&$grants, $account, $op) { ...@@ -383,7 +383,7 @@ function hook_node_grants_alter(&$grants, $account, $op) {
if ($op != 'view' && !empty($restricted)) { if ($op != 'view' && !empty($restricted)) {
// Now check the roles for this account against the restrictions. // Now check the roles for this account against the restrictions.
foreach ($restricted as $role_id) { foreach ($restricted as $role_id) {
if (isset($user->roles[$role_id])) { if (isset($account->roles[$role_id])) {
$grants = array(); $grants = array();
} }
} }
......
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