diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index a5ef02a..cf98450 100644 --- a/app/Http/Controllers/Api/ProfileController.php +++ b/app/Http/Controllers/Api/ProfileController.php @@ -138,8 +138,8 @@ class ProfileController extends Controller $profileId = $user->role === 'petani' ? $profile->id : $id; $profile = Profile::with('desaKelurahan') - ->when($profileId, fn($q,$v) => $q->where('id',$v)) - ->where('user_id', Auth::id())->first(); + ->when($profileId, fn($q,$v) => $q->where('id',$v))->first(); + // ->where('user_id', Auth::id())->first(); return response()->json(new ProfileResource($profile)); }