fix(so) : perbaikkan assigment atar region dan rejecte freeze

This commit is contained in:
majid
2025-03-21 10:37:19 +07:00
parent b6e71ac865
commit d5a4c019cb
4 changed files with 16 additions and 27 deletions

View File

@@ -563,7 +563,7 @@ class PenilaiController extends Controller
if (!Auth::user()->hasRole('administrator')) {
$query->whereHas('penilaian.userPenilai', function ($q) {
$q
->where('role', ['surveyor','penilai'])
->whereIn('role', ['surveyor', 'penilai'])
->where('user_id', Auth::user()->id);
});
}