From 37b03176947ae11142d459c88d888abd59f80077 Mon Sep 17 00:00:00 2001 From: "fauzgabriel@gmail.com" Date: Wed, 29 Apr 2026 15:40:23 +0700 Subject: [PATCH] d --- app/Http/Controllers/Api/ProfileController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Api/ProfileController.php b/app/Http/Controllers/Api/ProfileController.php index b71786c..6d8ed97 100644 --- a/app/Http/Controllers/Api/ProfileController.php +++ b/app/Http/Controllers/Api/ProfileController.php @@ -29,12 +29,12 @@ class ProfileController extends Controller $user = Auth::user(); $profile = $user->profile; - $requestID = null; - if($request->has('id')) { - $requestID = $request->id; - } + // $requestID = null; + // if($request->has('id')) { + // $requestID = $request->id; + // } - $profileId = $user->role === 'petani' ? $profile->id : $requestID; + $profileId = $user->role === 'petani' ? $profile->id : $request->id; $desaKelurahanId = null; if ($profile->role === 'fasilitator' || $profile->role === 'super_admin') {