aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'support/doc/plugins')
-rw-r--r--support/doc/plugins/guide.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index 53d53c26d..5b7d1cb31 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -261,8 +261,8 @@ function register ({
261 router.get('/ping', (req, res) => res.json({ message: 'pong' })) 261 router.get('/ping', (req, res) => res.json({ message: 'pong' }))
262 262
263 // Users are automatically authenticated 263 // Users are automatically authenticated
264 router.get('/auth', (res, res) => { 264 router.get('/auth', async (res, res) => {
265 const user = peertubeHelpers.user.getAuthUser(res) 265 const user = await peertubeHelpers.user.getAuthUser(res)
266 266
267 const isAdmin = user.role === 0 267 const isAdmin = user.role === 0
268 const isModerator = user.role === 1 268 const isModerator = user.role === 1