diff --git a/src/App/controller/product/ProductController.php b/src/App/controller/product/ProductController.php
index d5940ac88513602c857d03997cc3be5b6a29343a..eed89532bd99c57f0418957870bdec57eb76dbf7 100644
--- a/src/App/controller/product/ProductController.php
+++ b/src/App/controller/product/ProductController.php
@@ -5,7 +5,9 @@
 class ProductController extends Controller{
     public function index($id){
         if($this->userRole !== 1) {
-            throw new Exception("You are not allowed to view this page", 405);
+            // throw new Exception("You are not allowed to view this page", 405);
+            header("Location: /login");
+            exit();
         }
         
         $productModel = $this->model("ProductModel");