mirror of https://gitlab.com/bashrc2/epicyon
Moderator role
parent
5f58b0f02e
commit
76e87a1252
|
@ -298,8 +298,9 @@ def createPerson(baseDir: str,nickname: str,domain: str,port: int, \
|
||||||
privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint = \
|
privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint = \
|
||||||
createPersonBase(baseDir,nickname,domain,port,httpPrefix,saveToFile,password)
|
createPersonBase(baseDir,nickname,domain,port,httpPrefix,saveToFile,password)
|
||||||
if noOfAccounts(baseDir)==1:
|
if noOfAccounts(baseDir)==1:
|
||||||
print(nickname+' becomes the instance admin')
|
print(nickname+' becomes the instance admin and a moderator')
|
||||||
setRole(baseDir,nickname,domain,'instance','admin')
|
setRole(baseDir,nickname,domain,'instance','admin')
|
||||||
|
setRole(baseDir,nickname,domain,'instance','moderator')
|
||||||
return privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint
|
return privateKeyPem,publicKeyPem,newPerson,webfingerEndpoint
|
||||||
|
|
||||||
def createSharedInbox(baseDir: str,nickname: str,domain: str,port: int, \
|
def createSharedInbox(baseDir: str,nickname: str,domain: str,port: int, \
|
||||||
|
|
Loading…
Reference in New Issue