Check for system accounts during authorization

merge-requests/8/head
Bob Mottram 2020-11-23 09:39:09 +00:00
parent 88cc48480f
commit eb44a66066
1 changed files with 16 additions and 15 deletions

View File

@ -1120,6 +1120,7 @@ class PubServer(BaseHTTPRequestHandler):
tokenStr = tokenStr.split(';')[0].strip()
if self.server.tokensLookup.get(tokenStr):
nickname = self.server.tokensLookup[tokenStr]
if not isSystemAccount(nickname):
self.authorizedNickname = nickname
# default to the inbox of the person
if self.path == '/':