Merge pull request #6680 from Budibase/fix/app-overview-redirect

prevent redirect on app overview by allowing builders access to user …
This commit is contained in:
Martin McKeaveney 2022-07-13 11:55:56 +01:00 committed by GitHub
commit 10cdfeb05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ router
) )
.get("/api/global/users/tenant/:id", controller.tenantUserLookup) .get("/api/global/users/tenant/:id", controller.tenantUserLookup)
// global endpoint but needs to come at end (blocks other endpoints otherwise) // global endpoint but needs to come at end (blocks other endpoints otherwise)
.get("/api/global/users/:id", adminOnly, controller.find) .get("/api/global/users/:id", builderOrAdmin, controller.find)
// DEPRECATED - use new versions with self API // DEPRECATED - use new versions with self API
.get("/api/global/users/self", selfController.getSelf) .get("/api/global/users/self", selfController.getSelf)
.post( .post(