1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

?????????????????

This commit is contained in:
Steffo 2019-02-03 20:36:29 +01:00
parent fc9985828d
commit 6298e9bf33

View file

@ -262,7 +262,7 @@ def page_wiki(key: str):
@require_login @require_login
def page_wiki_edit(key: str): def page_wiki_edit(key: str):
wiki_page = fl_g.session.query(db.WikiEntry).filter_by(key=key).one_or_none() wiki_page = fl_g.session.query(db.WikiEntry).filter_by(key=key).one_or_none()
if wiki_page.locked: if wiki_page is not None and wiki_page.locked:
abort(403) abort(403)
return return
new_content = request.form.get("content") new_content = request.form.get("content")