Moderator role

master
Bob Mottram 2019-07-18 14:22:55 +01:00
parent 5f58b0f02e
commit 76e87a1252
1 changed files with 3 additions and 2 deletions

View File

@ -298,8 +298,9 @@ def createPerson(baseDir: str,nickname: str,domain: str,port: int, \
privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint = \
createPersonBase(baseDir,nickname,domain,port,httpPrefix,saveToFile,password)
if noOfAccounts(baseDir)==1:
print(nickname+' becomes the instance admin')
setRole(baseDir,nickname,domain,'instance','admin')
print(nickname+' becomes the instance admin and a moderator')
setRole(baseDir,nickname,domain,'instance','admin')
setRole(baseDir,nickname,domain,'instance','moderator')
return privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint
def createSharedInbox(baseDir: str,nickname: str,domain: str,port: int, \