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 = '''
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}} + -