- Patch #10187 by JonBob: bugfix: added missing permission check.

4.5.x
Dries Buytaert 2004-08-21 16:04:12 +00:00
parent d619ccc87e
commit 8b8a2bd634
2 changed files with 8 additions and 0 deletions

View File

@ -1590,6 +1590,10 @@ function node_access($op, $node = NULL) {
return TRUE;
}
if (!user_access('access content')) {
return FALSE;
}
// Can't use node_invoke(), because the access hook takes the $op parameter
// before the $node parameter.
$access = module_invoke(node_get_module_name($node), 'access', $op, $node);

View File

@ -1590,6 +1590,10 @@ function node_access($op, $node = NULL) {
return TRUE;
}
if (!user_access('access content')) {
return FALSE;
}
// Can't use node_invoke(), because the access hook takes the $op parameter
// before the $node parameter.
$access = module_invoke(node_get_module_name($node), 'access', $op, $node);