From 9c43e8fc7a192dfe768c76a539373915bddaa0aa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Jun 2001 22:08:57 +0000 Subject: Extremely large commit: - Fixed tiny quote problem in account.php. - Fixed tiny bug in comment.inc. - Fixed tiny bug in comment.module. - Fixed tiny bug in meta.module. - Simplified user_access() API. - Rewrote link system: still needs fine-tuning and testing so don't upgrade if you are running a production site. ;) Updated all modules and themes to reflect this change. All other themes and modules need updating too! --- node.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node.php') diff --git a/node.php b/node.php index 09e9622e1..45fd14162 100644 --- a/node.php +++ b/node.php @@ -5,9 +5,9 @@ include_once "includes/common.inc"; page_header(); function node_render($node) { - global $user, $id, $cid, $op, $moderate, $pid, $edit, $theme, $mode, $order, $threshold, $PHP_SELF; + global $id, $cid, $op, $moderate, $pid, $edit, $theme, $mode, $order, $threshold, $PHP_SELF; - if (user_access($user, "view content")) { + if (user_access("access content")) { if ($node->comment) { switch($op) { -- cgit v1.2.3