mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
?????????????????
This commit is contained in:
parent
fc9985828d
commit
6298e9bf33
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue