From d53bb5cf4bd9fa99bc8bf587a75cb0d754e53138 Mon Sep 17 00:00:00 2001 From: Chad Mazilly Date: Tue, 20 Jun 2017 10:01:59 -0500 Subject: [PATCH] limit to scorm views --- block_quickmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block_quickmail.php b/block_quickmail.php index 9b81b813..0c3ed370 100644 --- a/block_quickmail.php +++ b/block_quickmail.php @@ -12,9 +12,9 @@ function init() { function applicable_formats() { global $USER; if(is_siteadmin($USER->id) || has_capability('block/quickmail:myaddinstance', context_system::instance())) { - return array('site' => true, 'my' => true, 'course-view' => true, 'mod' => true); + return array('site' => true, 'my' => true, 'course-view' => true, 'mod-scorm-view' => true); } else { - return array('site' => false, 'my' => false, 'course-view' => true, 'mod' => true); + return array('site' => false, 'my' => false, 'course-view' => true, 'mod-scorm-view' => true); } } function has_config() {