diff --git a/app/Repositories/ExamRepository.php b/app/Repositories/ExamRepository.php index 3f6b9768..9a471273 100644 --- a/app/Repositories/ExamRepository.php +++ b/app/Repositories/ExamRepository.php @@ -329,7 +329,13 @@ class ExamRepository extends BaseRepository return false; } - return true; + try { + $user->checkIsNormal(); + return true; + } catch (\Throwable $throwable) { + do_log("$logPrefix, user is not normal: " . $throwable->getMessage()); + return false; + } } diff --git a/include/constants.php b/include/constants.php index 40d2701c..e146f63c 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@