forked from indymedia/epicyon
Move editing links to editor role
parent
ac6ad37c74
commit
e9d0ee3227
|
@ -2727,10 +2727,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
# get the nickname
|
# get the nickname
|
||||||
nickname = getNicknameFromActor(actorStr)
|
nickname = getNicknameFromActor(actorStr)
|
||||||
moderator = None
|
editor = None
|
||||||
if nickname:
|
if nickname:
|
||||||
moderator = isModerator(baseDir, nickname)
|
editor = isEditor(baseDir, nickname)
|
||||||
if not nickname or not moderator:
|
if not nickname or not editor:
|
||||||
if callingDomain.endswith('.onion') and \
|
if callingDomain.endswith('.onion') and \
|
||||||
onionDomain:
|
onionDomain:
|
||||||
actorStr = \
|
actorStr = \
|
||||||
|
|
|
@ -1224,7 +1224,7 @@ def htmlEditLinks(translate: {}, baseDir: str, path: str,
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
# is the user a moderator?
|
# is the user a moderator?
|
||||||
if not isModerator(baseDir, nickname):
|
if not isEditor(baseDir, nickname):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
cssFilename = baseDir + '/epicyon-links.css'
|
cssFilename = baseDir + '/epicyon-links.css'
|
||||||
|
@ -1399,8 +1399,8 @@ def htmlEditNewsPost(translate: {}, baseDir: str, path: str,
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
' <div class="container">\n'
|
' <div class="container">\n'
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
' <a href="' + pathOriginal + '/tlnews"><button class="cancelbtn">' + \
|
' <a href="' + pathOriginal + '/tlnews">' + \
|
||||||
translate['Go Back'] + '</button></a>\n'
|
'<button class="cancelbtn">' + translate['Go Back'] + '</button></a>\n'
|
||||||
editNewsPostForm += \
|
editNewsPostForm += \
|
||||||
' <input type="submit" name="submitEditedNewsPost" value="' + \
|
' <input type="submit" name="submitEditedNewsPost" value="' + \
|
||||||
translate['Submit'] + '">\n'
|
translate['Submit'] + '">\n'
|
||||||
|
|
Loading…
Reference in New Issue