mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Introduce videos command
This commit is contained in:
parent
7926c5f9b3
commit
d23dd9fbfc
108 changed files with 2484 additions and 3100 deletions
|
@ -16,7 +16,7 @@ const version = require('../../../package.json').version
|
|||
|
||||
async function getAdminTokenOrDie (server: ServerInfo, username: string, password: string) {
|
||||
const token = await server.loginCommand.getAccessToken(username, password)
|
||||
const me = await server.usersCommand.getMyUserInformation({ token })
|
||||
const me = await server.usersCommand.getMyInfo({ token })
|
||||
|
||||
if (me.role !== UserRole.ADMINISTRATOR) {
|
||||
console.error('You must be an administrator.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue