Browse Source

Don't show sharedip warning when teacher logged in.

MOODLE_36_STABLE
Dan Marsden 6 years ago
parent
commit
ff26902d4c
  1. 2
      classes/output/mobile.php

2
classes/output/mobile.php

@ -140,7 +140,7 @@ class mobile {
} }
} }
list($canmark, $reason) = attendance_can_student_mark($sess); list($canmark, $reason) = attendance_can_student_mark($sess);
if ($reason == 'preventsharederror') { if (!$isteacher && $reason == 'preventsharederror') {
$data['showmessage'] = true; $data['showmessage'] = true;
$data['messages'][]['string'] = 'preventsharederror'; // Lang string to show as a message. $data['messages'][]['string'] = 'preventsharederror'; // Lang string to show as a message.
} }

Loading…
Cancel
Save