Skip to content
Snippets Groups Projects
Unverified Commit 28689277 authored by Thomas's avatar Thomas Committed by GitHub
Browse files

Merge pull request #399 from ArnesSI/mobile-app-require-login-fix

Updated arguments of require_course_login function call for mobile view
parents a1c7f2eb 0876f9ec
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ class mobile { ...@@ -53,7 +53,7 @@ class mobile {
if (!$course) { if (!$course) {
print_error('coursemisconf'); print_error('coursemisconf');
} }
require_course_login($course, true, $cm); require_course_login($course, false, $cm, true, true);
$context = context_module::instance($cm->id); $context = context_module::instance($cm->id);
require_capability('mod/hvp:view', $context); require_capability('mod/hvp:view', $context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment