fix parent, teacher and admin pages
This commit is contained in:
@@ -103,11 +103,15 @@ class AuthController extends BaseApiController
|
||||
return $this->respondError('Unauthorized.', 401);
|
||||
}
|
||||
|
||||
$teacherContext = $user->teacherSessionContext();
|
||||
|
||||
return $this->respondSuccess([
|
||||
'id' => (int) $user->id,
|
||||
'firstname' => $user->firstname,
|
||||
'lastname' => $user->lastname,
|
||||
'email' => $user->email,
|
||||
'class_section_id' => $teacherContext['class_section_id'],
|
||||
'class_section_name' => $teacherContext['class_section_name'],
|
||||
], 'OK');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user