From 26bc061e79a1608a96a647718700614af1b28d2f Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Wed, 6 Nov 2019 16:28:09 +0100 Subject: [PATCH] Notify - Only show debug info to admins or when developer mode is active --- e107_handlers/notify_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/notify_class.php b/e107_handlers/notify_class.php index 6f7ef2eaa..5665cbaa5 100644 --- a/e107_handlers/notify_class.php +++ b/e107_handlers/notify_class.php @@ -216,7 +216,7 @@ class notify } - if(E107_DEBUG_LEVEL > 0 || deftrue('e_DEBUG_NOTIFY')) + if((ADMIN || $pref['developer']) && E107_DEBUG_LEVEL > 0 || deftrue('e_DEBUG_NOTIFY')) { $data = array('id'=>$id, 'subject'=>$subject, 'recipients'=> $recipients, 'prefs'=>$this->notify_prefs['event'][$id], 'message'=>$message);