main
Ilham Wara Nugroho 2026-02-09 14:00:05 +07:00
parent 05ee032f1d
commit 8720757f9a
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Profile
{
$user = Sekolah::where('npsn',auth()->user()->username)->first();
if(!@$user && (auth()->user()->ms_group_id == 2)){
return redirect('profile-sekolah/lengkapi/'.encode_id($user->username));
return redirect('profile-sekolah/lengkapi/'.encode_id(auth()->user()->username));
}
return $next($request);
}