Commit c49207d9 authored by jhodgdon's avatar jhodgdon

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) {
if ($op != 'view' && !empty($restricted)) {
// Now check the roles for this account against the restrictions.
foreach ($restricted as $role_id) {
if (isset($user->roles[$role_id])) {
if (isset($account->roles[$role_id])) {
$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