exam assign check if user normal

This commit is contained in:
lgb
2024-05-09 10:26:20 +08:00
parent fc2aaf802b
commit f323f96a66
2 changed files with 8 additions and 2 deletions

View File

@@ -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;
}
}