This commit is contained in:
izuddin
2025-07-15 10:17:59 +07:00
parent 43625e5431
commit 937afce4b8
8 changed files with 22 additions and 14 deletions
@@ -47,7 +47,7 @@ class ItemSearchController extends Controller
if (getRole() == "sbpk") {
$sqlStr .= " AND y.C_WIL_SP2DPROSES=" . Auth::user()->wilayah;
} elseif (getRole() == "walikota") {
} elseif (getRole() == "walikota" || getRole() == "induk skpd") {
$id = Tropd::where("C_OPD", Auth::user()->nrk)->first()["i_id"];
$sqlStr .= " AND x.KODE_SKPD IN (SELECT C_OPD FROM NEWSIPKD.TROPD WHERE I_IDINDUK=" . $id . ")";
}