From 94ff4c2335ace54b36b2bca96f63226ee8f575b1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 16 Apr 2018 10:48:17 +0200 Subject: Add auth documentation --- server/controllers/api/users.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/controllers/api') 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('/', ) usersRouter.get('/:id', + authenticate, + ensureUserHasRight(UserRight.MANAGE_USERS), asyncMiddleware(usersGetValidator), getUser ) -- cgit v1.2.3