Don't set own status

main
Bob Mottram 2020-12-17 10:19:47 +00:00
parent 721e26a38e
commit b0e0bdbd69
1 changed files with 4 additions and 3 deletions

View File

@ -1767,9 +1767,10 @@ class PubServer(BaseHTTPRequestHandler):
# See htmlPersonOptions
if '&submitPostToNews=' in optionsConfirmParams:
adminNickname = getConfigParam(self.server.baseDir, 'admin')
if (chooserNickname == adminNickname or
(isModerator(self.server.baseDir, chooserNickname) and
not isModerator(self.server.baseDir, optionsNickname))):
if (chooserNickname != optionsNickname and
(chooserNickname == adminNickname or
(isModerator(self.server.baseDir, chooserNickname) and
not isModerator(self.server.baseDir, optionsNickname)))):
postsToNews = None
if 'postsToNews=' in optionsConfirmParams:
postsToNews = optionsConfirmParams.split('postsToNews=')[1]