mirror of https://gitlab.com/bashrc2/epicyon
Check that the editor is the admin
parent
d78139a258
commit
67ea679887
|
@ -2908,6 +2908,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if os.path.isfile(linksFilename):
|
if os.path.isfile(linksFilename):
|
||||||
os.remove(linksFilename)
|
os.remove(linksFilename)
|
||||||
|
|
||||||
|
adminNickname = \
|
||||||
|
getConfigParam(baseDir, 'admin')
|
||||||
|
if nickname == adminNickname:
|
||||||
if fields.get('editedAbout'):
|
if fields.get('editedAbout'):
|
||||||
aboutStr = fields['editedAbout']
|
aboutStr = fields['editedAbout']
|
||||||
aboutFile = open(aboutFilename, "w+")
|
aboutFile = open(aboutFilename, "w+")
|
||||||
|
|
Loading…
Reference in New Issue