perbaikana perhitungan npw dan nl otomatis, dan perbaikan otorisator
This commit is contained in:
@@ -199,7 +199,7 @@ class PenilaiController extends Controller
|
||||
|
||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
||||
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
||||
|
||||
|
||||
return view('lpj::penilai.components.paparan');
|
||||
}
|
||||
|
||||
@@ -240,10 +240,10 @@ class PenilaiController extends Controller
|
||||
});
|
||||
}
|
||||
|
||||
// Apply whereHas to check penilai_id, role, and user_id specifically for 'penilai' role
|
||||
|
||||
$query->whereHas('penilaian.userPenilai', function ($q) {
|
||||
$q->where('role', 'penilai') // Ensure the role is 'penilai'
|
||||
->where('user_id', Auth::user()->id); // Ganti dengan Auth::user()->id jika dinamis
|
||||
$q->where('role', 'penilai')
|
||||
->where('user_id', Auth::user()->id);
|
||||
});
|
||||
|
||||
// Apply sorting if provided
|
||||
@@ -487,7 +487,8 @@ class PenilaiController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function storeLpjSederhanadanStandard(Request $request){
|
||||
public function storeLpjSederhanadanStandard(Request $request)
|
||||
{
|
||||
|
||||
try {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user