From 282fbfd26a9ce66c5ac012a606e770c619a11278 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 10 Feb 2001 17:52:21 +0000 Subject: - fixed problem with user_permission (reported by Kirstjan) --- includes/watchdog.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/watchdog.inc b/includes/watchdog.inc index 41961d661..fd72d3512 100644 --- a/includes/watchdog.inc +++ b/includes/watchdog.inc @@ -10,7 +10,7 @@ $watchdog = array("comment" => array("0", $submission_rate["comment"]), function watchdog($id, $message) { global $user, $watchdog, $watchdog_history; - if ($watchdog[$id][1] && !user_permission()) { + if ($watchdog[$id][1] && !user_permission($user)) { if ($log = db_fetch_object(db_query("SELECT * FROM watchdog WHERE hostname = '". getenv("REMOTE_ADDR") ."' AND level = '". $watchdog[$id][0] ."'"))) { if (time() - $log->timestamp < $watchdog[$id][1]) { watchdog("warning", "'". getenv("REMOTE_ADDR") ."' exceeded '$id' submission rate"); -- cgit v1.2.3