From 0d0727b879606916fc2edc54f6f28259f8fe6183 Mon Sep 17 00:00:00 2001
From: Friederike Schwager <schwager@cil.rwth-aachen.de>
Date: Mon, 26 Aug 2019 13:20:45 +0200
Subject: [PATCH] notifications are off by default

---
 db/messages.php | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/db/messages.php b/db/messages.php
index 939326c..7f888da 100644
--- a/db/messages.php
+++ b/db/messages.php
@@ -20,7 +20,7 @@
  *
  * @package   mod_pdfannotator
  * @copyright 2018 RWTH Aachen (see README.md)
- * @authors   Rabea de Groot and Anna Heynkes
+ * @authors   Rabea de Groot, Anna Heynkes and Friederike Schwager
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  *
  */
@@ -35,10 +35,6 @@ $messageproviders = array (
     // Concerns answers to questions the student subscribed to.
     'newanswer' => array (
         'capability'  => 'mod/pdfannotator:viewanswers', // Student capability.
-        'defaults' => array(
-            'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
-            'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
-        )
     ),
 
     // Notify teacher about a newly reported comment.
@@ -48,11 +44,7 @@ $messageproviders = array (
 
     // Notify when receiving a forwarded question.
     'forwardedquestion' => array (
-        'capability'  => 'mod/pdfannotator:getforwardedquestions',
-        'defaults' => array(
-            'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
-            'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
-        )
+        'capability'  => 'mod/pdfannotator:getforwardedquestions', // Teacher capability.
     )
 
 );
\ No newline at end of file
-- 
GitLab