From e9ca3f3deb9d1355ad365d8128ce2d3614ce844a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Oct 2020 17:14:49 +0100 Subject: [PATCH] Set admin status first --- person.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/person.py b/person.py index 61a307f10..e0b4f2a51 100644 --- a/person.py +++ b/person.py @@ -447,10 +447,10 @@ def createPerson(baseDir: str, nickname: str, domain: str, port: int, password) if noOfAccounts(baseDir) == 1: # print(nickname+' becomes the instance admin and a moderator') + setConfigParam(baseDir, 'admin', nickname) setRole(baseDir, nickname, domain, 'instance', 'admin') setRole(baseDir, nickname, domain, 'instance', 'moderator') setRole(baseDir, nickname, domain, 'instance', 'delegator') - setConfigParam(baseDir, 'admin', nickname) if not os.path.isdir(baseDir + '/accounts'): os.mkdir(baseDir + '/accounts')