forked from free-lancers/electricity_bill_calc_service
fix(user):更正用户分页检索接口的权限。
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user