diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-16 10:48:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-16 17:27:00 +0200 |
commit | 94ff4c2335ace54b36b2bca96f63226ee8f575b1 (patch) | |
tree | 60eaf4b370bdd165383231cf76cb918c19d36fc5 /server/controllers/api | |
parent | f36fb3ecb114c8c274618bf9fefbe7a5a3d45f10 (diff) | |
download | PeerTube-94ff4c2335ace54b36b2bca96f63226ee8f575b1.tar.gz PeerTube-94ff4c2335ace54b36b2bca96f63226ee8f575b1.tar.zst PeerTube-94ff4c2335ace54b36b2bca96f63226ee8f575b1.zip |
Add auth documentation
Diffstat (limited to 'server/controllers/api')
-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 | ) |