From e67b9afa6843be7be2f51ce13aca5b1a9f988372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 29 Sep 2022 10:43:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(user):=E6=9B=B4=E6=AD=A3=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E6=A3=80=E7=B4=A2=E6=8E=A5=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E6=9D=83=E9=99=90=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/user.go b/controller/user.go index 7edf43b..0689cfc 100644 --- a/controller/user.go +++ b/controller/user.go @@ -21,7 +21,7 @@ func InitializeUserController(router *fiber.App) { router.Delete("/password/:uid", security.OPSAuthorize, invalidUserPassword) router.Delete("/login", security.MustAuthenticated, logout) router.Put("/password", resetUserPassword) - router.Get("/accounts", security.OPSAuthorize, listPagedUser) + router.Get("/accounts", security.ManagementAuthorize, listPagedUser) router.Post("/login", login) router.Put("/account/enabled/state", security.OPSAuthorize, switchUserEnabling) router.Post("/account", security.OPSAuthorize, createOPSAndManagementAccount)