use correct middleware
This commit is contained in:
parent
d36fde046b
commit
1da4645d58
|
@ -64,7 +64,7 @@ router
|
||||||
.post("/api/global/users/search", builderOrAdmin, controller.search)
|
.post("/api/global/users/search", builderOrAdmin, controller.search)
|
||||||
.delete("/api/global/users/:id", adminOnly, controller.destroy)
|
.delete("/api/global/users/:id", adminOnly, controller.destroy)
|
||||||
.post("/api/global/users/bulkDelete", adminOnly, controller.bulkDelete)
|
.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")
|
.get("/api/global/roles/:appId")
|
||||||
.post(
|
.post(
|
||||||
"/api/global/users/invite",
|
"/api/global/users/invite",
|
||||||
|
|
Loading…
Reference in New Issue