summaryrefslogtreecommitdiff
path: root/includes/watchdog.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/watchdog.inc')
-rw-r--r--includes/watchdog.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index 2a007e3ce..4de8210db 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]) {
+ if ($watchdog[$id][1] && !($user->permissions == 1 || $user->id == 1)) {
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");