From cf08e9828d2a3c343486f5c7290f318b01d35e04 Mon Sep 17 00:00:00 2001 From: "fauzgabriel@gmail.com" Date: Thu, 23 Apr 2026 14:49:09 +0700 Subject: [PATCH] s --- app/Http/Controllers/Api/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();