Skip to content
Snippets Groups Projects
Commit 24ab9bd1 authored by Alifioditya's avatar Alifioditya
Browse files

fix: git merge error

parent 1eb4932f
No related merge requests found
......@@ -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']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment