mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
exam assign check if user normal
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user