fix: error geser titik spbu dan memunculkan alat digitasi lahan

This commit is contained in:
2026-06-12 06:16:46 +07:00
parent 90f6166219
commit a9785feeb5
8 changed files with 151 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
session_start();
include '../koneksi.php';
if (!isset($_SESSION['user_id'])) {
if (!isset($_SESSION['role']) || !in_array($_SESSION['role'], ['admin', 'petugas'])) {
echo json_encode(['status' => 'error', 'message' => 'Unauthorized']);
exit;
}