aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-29 13:18:05 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-29 13:18:05 +0100
commit86d13ec2aa94ec10810ddf9c8b33314bd4968791 (patch)
tree5c4175325362df2a92e367dc4077e53a700bfbad /server/controllers
parent165cdc75bf1942ed687f78094c2bd366839a7c99 (diff)
downloadPeerTube-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')
-rw-r--r--server/controllers/api/users.ts2
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
50usersRouter.get('/', 50usersRouter.get('/',
51 authenticate,
52 ensureUserHasRight(UserRight.MANAGE_USERS),
51 paginationValidator, 53 paginationValidator,
52 usersSortValidator, 54 usersSortValidator,
53 setUsersSort, 55 setUsersSort,