Fix admin edition disabling feature

This commit is contained in:
Chocobozzz
2021-10-14 11:35:43 +02:00
parent e1a570abff
commit cf0c8ee588
14 changed files with 61 additions and 20 deletions

View File

@@ -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 () {

View File

@@ -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 () {