Commit e26ac905 authored by Francois Gannaz's avatar Francois Gannaz
Browse files

grantTeacherAccess() on first create/edit

parent cfcbff95
......@@ -8,13 +8,15 @@
*/
use mod_labnbook\fetch;
use mod_labnbook\form\select_dynamic;
use mod_labnbook\local\helper;
\defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/course/moodleform_mod.php');
// short-cut before loading the form, see `course/modedit.php`
\mod_labnbook\local\helper::requireLabnbookAuthentication();
helper::requireLabnbookAuthentication();
helper::grantTeacherAccess($COURSE->id);
\define('TEAMCONFIG_METHOD_STUDENTS', 1);
\define('TEAMCONFIG_METHOD_RANDOM', 3);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment