diff options
Diffstat (limited to 'server/controllers/api/users.ts')
-rw-r--r-- | server/controllers/api/users.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index 5e96d789e..abe6b3ff7 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -88,6 +88,8 @@ usersRouter.get('/', | |||
88 | ) | 88 | ) |
89 | 89 | ||
90 | usersRouter.get('/:id', | 90 | usersRouter.get('/:id', |
91 | authenticate, | ||
92 | ensureUserHasRight(UserRight.MANAGE_USERS), | ||
91 | asyncMiddleware(usersGetValidator), | 93 | asyncMiddleware(usersGetValidator), |
92 | getUser | 94 | getUser |
93 | ) | 95 | ) |