From b60269b042ac7986271fa8b865720363206e7d63 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Fri, 29 Oct 2021 17:54:46 -0700 Subject: [PATCH] update index template, update requirements --- requirements.txt | 1 + web/app.py | 2 +- web/templates/index.html | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 79fc498..968264a 100755 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,5 @@ requests libscrc resettabletimer cryptography +setproctitle diff --git a/web/app.py b/web/app.py index fd921bc..ff0b615 100644 --- a/web/app.py +++ b/web/app.py @@ -2698,7 +2698,7 @@ TG #: ''' + str(tg_d.tg) + ''' elif request.args.get('delete_page'): show_form = False tpd = TinyPage.query.filter_by(id=int(request.args.get('delete_page'))).first() - if str(current_user.username).upper() == str(tpd.author).upper(): + if str(current_user.username).upper() == str(tpd.author).upper() or current_user.has_roles('Admin'): tp_del(int(request.args.get('delete_page'))) content = '''

Deleted page.

Redirecting in 1 seconds.

diff --git a/web/templates/index.html b/web/templates/index.html index b6a1f64..616515f 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -7,8 +7,9 @@ {{content_block}} + -
+

 

@@ -22,7 +23,6 @@
-