remove codeigniter
This commit is contained in:
@@ -12,7 +12,7 @@ use Illuminate\Support\Facades\DB;
|
||||
class StudentScoreCardService
|
||||
{
|
||||
/**
|
||||
* Students shown on the score-card picker (CI `StudentController::scoreCardList` parity).
|
||||
* Students shown on the score-card picker (legacy `StudentController::scoreCardList` parity).
|
||||
* Teachers: only students in `class_section_id` for `school_year` after `teacher_class` check.
|
||||
* Parents: their children only. Other roles: active students (optional search/limit).
|
||||
*
|
||||
@@ -25,7 +25,7 @@ class StudentScoreCardService
|
||||
?int $classSectionId,
|
||||
?string $schoolYear,
|
||||
): array {
|
||||
$rolesLower = array_map('strtolower', $user->roleNamesLikeCodeIgniter());
|
||||
$rolesLower = array_map('strtolower', $user->roleNames());
|
||||
$isTeacher = in_array('teacher', $rolesLower, true) || in_array('teacher_assistant', $rolesLower, true);
|
||||
$isParent = in_array('parent', $rolesLower, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user