From 3b7c219a10fe0d3d4c9182cbcbc5cf05eb426f97 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 24 八月 2022 10:48:49 +0800
Subject: [PATCH] fix: [isLoginAuthGuard] agent: 'appointment-appointmentId-interview-new'

---
 PAMapp/middleware/isLogin.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/PAMapp/middleware/isLogin.ts b/PAMapp/middleware/isLogin.ts
index 8f178a1..2224a14 100644
--- a/PAMapp/middleware/isLogin.ts
+++ b/PAMapp/middleware/isLogin.ts
@@ -25,7 +25,7 @@
             context.redirect('/');
         }
     } else if(isAdminLogin) {
-        const agentFunctions = ['notification', 'agentInfo-agentNo', 'agentInfo-edit-agentNo', 'record', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'myAppointmentList-closedList', 'appointment-appointmentId', 'appointment-appointmentId-close', ...noNeedLoginFunctionList];
+        const agentFunctions = ['notification', 'agentInfo-agentNo', 'agentInfo-edit-agentNo', 'record', 'myAppointmentList-appointmentList', 'myAppointmentList-contactedList', 'myAppointmentList-closedList', 'appointment-appointmentId', 'appointment-appointmentId-close', 'appointment-appointmentId-interview-new', ...noNeedLoginFunctionList];
         const routeNeedAgentLogin = !(agentFunctions.some((routeName) => routeName === currentRouteName));
         if (routeNeedAgentLogin) {
             context.redirect('/');

--
Gitblit v1.8.0