Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
e26ac905
Commit
e26ac905
authored
Jan 21, 2020
by
Francois Gannaz
Browse files
grantTeacherAccess() on first create/edit
parent
cfcbff95
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod_form.php
View file @
e26ac905
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment