Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
limit to scorm views
Browse files Browse the repository at this point in the history
  • Loading branch information
chadmazilly committed Jun 20, 2017
1 parent 957eff1 commit d53bb5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block_quickmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d53bb5c

Please sign in to comment.