Browse Source

Don't show sharedip warning when teacher logged in.

MOODLE_35_STABLE
Dan Marsden 6 years ago
parent
commit
899abd4911
  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