diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 3a8f91f1..4e59f002 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -27,7 +27,7 @@ public static function mobile_course_view($args) { global $DB, $CFG, $OUTPUT, $USER; $cmid = $args['cmid']; - if (!$CFG->allowframembedding) { + if (empty($CFG->allowframembedding) && !core_useragent::is_moodle_app()) { $context = \context_system::instance(); if (has_capability('moodle/site:config', $context)) { $template = 'mod_hvp/iframe_embedding_disabled';