feat(t230): use OCR for ERP session login
This commit is contained in:
@@ -89,9 +89,6 @@ func registerAdminAPI(routes gin.IRoutes, services AdminServices) error {
|
||||
handler.createProcurementTask,
|
||||
)
|
||||
}
|
||||
if services.ERP != nil {
|
||||
registerERPAdminAPI(routes, handler)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -233,8 +233,7 @@ func denyAdminSession(ctx *gin.Context) {
|
||||
(next != "/tasks" && !strings.HasPrefix(next, "/tasks?") &&
|
||||
!strings.HasPrefix(next, "/tasks/") &&
|
||||
next != "/freight" && !strings.HasPrefix(next, "/freight?") &&
|
||||
!strings.HasPrefix(next, "/freight/") &&
|
||||
next != "/erp" && !strings.HasPrefix(next, "/erp?")) {
|
||||
!strings.HasPrefix(next, "/freight/")) {
|
||||
next = "/tasks"
|
||||
}
|
||||
ctx.Abort()
|
||||
|
||||
Reference in New Issue
Block a user