mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix admin edition disabling feature
This commit is contained in:
@@ -186,6 +186,10 @@ describe('Test auto follows', function () {
|
||||
await checkFollow(servers[0], servers[1], false)
|
||||
await checkFollow(servers[0], servers[2], true)
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
await instanceIndexServer.terminate()
|
||||
})
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
|
||||
@@ -379,14 +379,14 @@ describe('Test static config', function () {
|
||||
before(async function () {
|
||||
this.timeout(30000)
|
||||
|
||||
server = await createSingleServer(1, { webadmin: { configuration: { edit: { allowed: false } } } })
|
||||
server = await createSingleServer(1, { webadmin: { configuration: { edition: { allowed: false } } } })
|
||||
await setAccessTokensToServers([ server ])
|
||||
})
|
||||
|
||||
it('Should tell the client that edits are not allowed', async function () {
|
||||
const data = await server.config.getConfig()
|
||||
|
||||
expect(data.allowEdits).to.be.false
|
||||
expect(data.webadmin.configuration.edition.allowed).to.be.false
|
||||
})
|
||||
|
||||
it('Should error when client tries to update', async function () {
|
||||
|
||||
Reference in New Issue
Block a user