fix(user):更正用户分页检索接口的权限。

This commit is contained in:
徐涛 2022-09-29 10:43:07 +08:00
parent 201af1cc25
commit e67b9afa68

View File

@ -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)