diff --git a/db/messages.php b/db/messages.php index f9c94b8..556fae6 100644 --- a/db/messages.php +++ b/db/messages.php @@ -31,7 +31,7 @@ 'newquestion' => array ( 'capability' => 'mod/pdfannotator:recievenewquestionnotifications', // All capabilities. 'defaults' => array( - 'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF, + 'popup' => MESSAGE_PERMITTED, 'email' => MESSAGE_PERMITTED, ), ), diff --git a/lib.php b/lib.php index 1353c40..51c50b0 100644 --- a/lib.php +++ b/lib.php @@ -76,6 +76,7 @@ function pdfannotator_supports($feature) { function pdfannotator_get_extra_capabilities() { return array('moodle/site:accessallgroups'); } + /** * This function is used by the reset_course_userdata function in moodlelib. * @param $data the data submitted from the reset course.