1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Plugin user.getAuthUser is now async

So we can load the full user
This commit is contained in:
Chocobozzz 2021-05-05 15:26:28 +02:00
parent 7a22a0a56a
commit b31d72625d
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 19 additions and 7 deletions

View file

@ -133,6 +133,7 @@ describe('Test plugin helpers', function () {
})
expect(res.body.username).to.equal('root')
expect(res.body.displayName).to.equal('root')
expect(res.body.isAdmin).to.be.true
expect(res.body.isModerator).to.be.false
expect(res.body.isUser).to.be.false