From 24ab9bd1685f5da39e8fc27439ff55268f34f00c Mon Sep 17 00:00:00 2001 From: Alifioditya <alifioditya@gmail.com> Date: Tue, 10 Oct 2023 16:23:39 +0700 Subject: [PATCH] fix: git merge error --- src/app/controllers/CatalogueController.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/app/controllers/CatalogueController.php b/src/app/controllers/CatalogueController.php index 89cd9e1..aee9f69 100644 --- a/src/app/controllers/CatalogueController.php +++ b/src/app/controllers/CatalogueController.php @@ -88,14 +88,6 @@ class CatalogueController extends Controller implements ControllerInterface exit; } - // Redirect 404 if not admin - try { - $auth->isAdmin(); - } catch (Exception $e) { - header('Location: ' . BASE_URL); - exit; - } - // For navbar, get info if user is admin $userModel = $this->model('UserModel'); $isAdmin = $userModel->isAdmin($_SESSION['user_id']); -- GitLab