1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Notify - Only show debug info to admins or when developer mode is active

This commit is contained in:
Tijn Kuyper 2019-11-06 16:28:09 +01:00
parent 281db68aa2
commit 26bc061e79
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

View File

@ -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);