main
Ilham Wara Nugroho 2026-02-09 13:58:21 +07:00
parent 5fd63c76c3
commit 186ef43890
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Profile
*/
public function handle(Request $request, Closure $next): Response
{
$user = User::with(['profile'])->where('id',auth()->user()->id)->first();
$user = Sekolah::where('npsn',auth()->user()->username)->where('ms_group_id',2)->first();
if(!@$user->profile && ($user->ms_group_id == 2)){
return redirect('profile-sekolah/lengkapi/'.encode_id($user->username));
}