diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-03-06 10:32:32 -0800 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-03-06 10:32:32 -0800 |
commit | d947e9a1ea96965a7c3ccc675697c849bbcff72f (patch) | |
tree | 30ec0c7cb5f6a49180e7d2f76da99d169ff35105 /modules/node | |
parent | ad2a2d5816362a666accfc1ea3829eb0eb048f78 (diff) | |
download | brdo-d947e9a1ea96965a7c3ccc675697c849bbcff72f.tar.gz brdo-d947e9a1ea96965a7c3ccc675697c849bbcff72f.tar.bz2 |
Issue #1469758 by chertzog: Fix typo in sample hook_node_grants_alter function
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php index a9881d5ee..1c3641470 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -393,7 +393,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(); } } |