diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 13:18:05 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 13:18:05 +0100 |
commit | 86d13ec2aa94ec10810ddf9c8b33314bd4968791 (patch) | |
tree | 5c4175325362df2a92e367dc4077e53a700bfbad /server/controllers/api/users.ts | |
parent | 165cdc75bf1942ed687f78094c2bd366839a7c99 (diff) | |
download | PeerTube-86d13ec2aa94ec10810ddf9c8b33314bd4968791.tar.gz PeerTube-86d13ec2aa94ec10810ddf9c8b33314bd4968791.tar.zst PeerTube-86d13ec2aa94ec10810ddf9c8b33314bd4968791.zip |
Users list only available when use is authenticated
And has a special right
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 721b23301..f9b871724 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -48,6 +48,8 @@ usersRouter.get('/me/videos/:videoId/rating', | |||
48 | ) | 48 | ) |
49 | 49 | ||
50 | usersRouter.get('/', | 50 | usersRouter.get('/', |
51 | authenticate, | ||
52 | ensureUserHasRight(UserRight.MANAGE_USERS), | ||
51 | paginationValidator, | 53 | paginationValidator, |
52 | usersSortValidator, | 54 | usersSortValidator, |
53 | setUsersSort, | 55 | setUsersSort, |