We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01a9bb commit f8fd7bcCopy full SHA for f8fd7bc
main/inc/local.inc.php
@@ -1316,14 +1316,18 @@
1316
// save the states
1317
if (isset($is_courseAdmin)) {
1318
Session::write('is_courseAdmin', $is_courseAdmin);
1319
- $is_allowed_in_course = true;
+ if ($is_courseAdmin) {
1320
+ $is_allowed_in_course = true;
1321
+ }
1322
}
1323
if (isset($is_courseMember)) {
1324
Session::write('is_courseMember', $is_courseMember);
1325
1326
if (isset($is_courseTutor)) {
1327
Session::write('is_courseTutor', $is_courseTutor);
1328
+ if ($is_courseTutor) {
1329
1330
1331
1332
Session::write('is_courseCoach', $is_courseCoach);
1333
Session::write('is_allowed_in_course', $is_allowed_in_course);
0 commit comments