From c9d63487fcce6b51397ac8514b83883c29950f70 Mon Sep 17 00:00:00 2001 From: Dzung Do Date: Wed, 5 Jun 2024 15:13:41 +0700 Subject: [PATCH] Update permission.php Support http status code --- upload/admin/controller/error/permission.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload/admin/controller/error/permission.php b/upload/admin/controller/error/permission.php index 380fe8a07c4..aded32d82b7 100644 --- a/upload/admin/controller/error/permission.php +++ b/upload/admin/controller/error/permission.php @@ -28,6 +28,8 @@ public function index(): void { 'href' => $this->url->link($this->request->get['route'], 'user_token=' . $this->session->data['user_token']) ]; + $this->response->addheader($this->request->server['SERVER_PROTOCOL'] . ' 401 Unauthorized'); + $data['header'] = $this->load->controller('common/header'); $data['column_left'] = $this->load->controller('common/column_left'); $data['footer'] = $this->load->controller('common/footer');