From 0bd908d4e7fe56ff58f64ddbb2c011f0c707f8a8 Mon Sep 17 00:00:00 2001 From: "Satrya.IY29" Date: Tue, 9 Jun 2026 11:45:33 +0000 Subject: [PATCH] Update auth.php --- auth.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/auth.php b/auth.php index 32ae2fa..f39e162 100644 --- a/auth.php +++ b/auth.php @@ -10,17 +10,20 @@ if (session_status() === PHP_SESSION_NONE) { function isAdminPemerintah() { return ( isset($_SESSION['role']) && - $_SESSION['role'] === 'admin_pemerintah' + ( + $_SESSION['role'] === 'admin_pemerintah' || + $_SESSION['role'] === 'admin' + ) ); } -/** - * Cek apakah user adalah Admin Rumah Ibadah - */ function isAdminIbadah() { return ( isset($_SESSION['role']) && - $_SESSION['role'] === 'admin_ibadah' + ( + $_SESSION['role'] === 'admin_ibadah' || + $_SESSION['role'] === 'operator' + ) ); }