use correct middleware

This commit is contained in:
Peter Clement 2022-08-03 14:37:41 +01:00
parent d36fde046b
commit 1da4645d58
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ router
.post("/api/global/users/search", builderOrAdmin, controller.search)
.delete("/api/global/users/:id", adminOnly, controller.destroy)
.post("/api/global/users/bulkDelete", adminOnly, controller.bulkDelete)
.get("/api/global/users/count/:appId", controller.countByApp)
.get("/api/global/users/count/:appId", builderOrAdmin, controller.countByApp)
.get("/api/global/roles/:appId")
.post(
"/api/global/users/invite",