From 899abd491125fbe650181138d78a3d9c69a6e572 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 17 Oct 2018 10:09:15 +1300 Subject: [PATCH] Don't show sharedip warning when teacher logged in. --- classes/output/mobile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 0650093..682df3c 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -140,7 +140,7 @@ class mobile { } } list($canmark, $reason) = attendance_can_student_mark($sess); - if ($reason == 'preventsharederror') { + if (!$isteacher && $reason == 'preventsharederror') { $data['showmessage'] = true; $data['messages'][]['string'] = 'preventsharederror'; // Lang string to show as a message. }