diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index e161dcc..7fa299b 100644 --- a/app/Http/Controllers/Api/ProfileController.php +++ b/app/Http/Controllers/Api/ProfileController.php @@ -135,7 +135,7 @@ class ProfileController extends Controller $user = Auth::user(); $profile = $user->profile; - $profileId = ($user->role === 'petani') ? $profile->id : $id; + $profileId = ($user->role == 'petani') ? $profile->id : $id; $profile = Profile::with('desaKelurahan') ->where('id', $profileId)->firstOrFail();