From aefe805f5e07f066bbdca18816846de044989210 Mon Sep 17 00:00:00 2001
From: Tim Schroeder <t.schroeder@itc.rwth-aachen.de>
Date: Wed, 12 Aug 2020 18:21:10 +0200
Subject: [PATCH] changed new question notifications default from mail to popup

fixes #35
---
 db/messages.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/db/messages.php b/db/messages.php
index 7f888da..ee76570 100644
--- a/db/messages.php
+++ b/db/messages.php
@@ -29,7 +29,11 @@ defined('MOODLE_INTERNAL') || die();
 $messageproviders = array (
 
     'newquestion' => array (
-        'capability'  => 'mod/pdfannotator:recievenewquestionnotifications' // All capabilities.
+        'capability'  => 'mod/pdfannotator:recievenewquestionnotifications', // All capabilities.
+        'defaults' => array(
+            'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
+            'email' => MESSAGE_PERMITTED,
+        ),
     ),
 
     // Concerns answers to questions the student subscribed to.
-- 
GitLab