forked from indymedia/epicyon
Ensure moderator status on the backend
parent
48aff7b61e
commit
a6506c6c96
|
@ -1645,7 +1645,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if debug:
|
if debug:
|
||||||
print('You cannot perform an option action on yourself')
|
print('You cannot perform an option action on yourself')
|
||||||
|
|
||||||
# view button on person option screen
|
# person options screen, view button
|
||||||
if '&submitView=' in optionsConfirmParams:
|
if '&submitView=' in optionsConfirmParams:
|
||||||
if debug:
|
if debug:
|
||||||
print('Viewing ' + optionsActor)
|
print('Viewing ' + optionsActor)
|
||||||
|
@ -1654,7 +1654,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
# petname submit button on person option screen
|
# person options screen, petname submit button
|
||||||
if '&submitPetname=' in optionsConfirmParams and petname:
|
if '&submitPetname=' in optionsConfirmParams and petname:
|
||||||
if debug:
|
if debug:
|
||||||
print('Change petname to ' + petname)
|
print('Change petname to ' + petname)
|
||||||
|
@ -1670,7 +1670,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
# person notes submit button on person option screen
|
# person options screen, person notes submit button
|
||||||
if '&submitPersonNotes=' in optionsConfirmParams:
|
if '&submitPersonNotes=' in optionsConfirmParams:
|
||||||
if debug:
|
if debug:
|
||||||
print('Change person notes')
|
print('Change person notes')
|
||||||
|
@ -1718,6 +1718,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# person options screen, permission to post to newswire
|
# person options screen, permission to post to newswire
|
||||||
# See htmlPersonOptions
|
# See htmlPersonOptions
|
||||||
if '&submitPostToNews=' in optionsConfirmParams:
|
if '&submitPostToNews=' in optionsConfirmParams:
|
||||||
|
if isModerator(self.server.baseDir, chooserNickname):
|
||||||
postsToNews = None
|
postsToNews = None
|
||||||
if 'postsToNews=' in optionsConfirmParams:
|
if 'postsToNews=' in optionsConfirmParams:
|
||||||
postsToNews = optionsConfirmParams.split('postsToNews=')[1]
|
postsToNews = optionsConfirmParams.split('postsToNews=')[1]
|
||||||
|
|
Loading…
Reference in New Issue