From 0e0cc248fa06f2c8072b44c6f7ddd4ff1e34131e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 22 Dec 2024 18:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E7=82=B9=E9=A1=B5=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E9=A1=B5=E9=9D=A2=E7=99=BB=E5=BD=95=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/crontab/__init__.py | 1 + web/admin/site/site.py | 1 + 2 files changed, 2 insertions(+) diff --git a/web/admin/crontab/__init__.py b/web/admin/crontab/__init__.py index 64adb51cf..6ba8b5e70 100644 --- a/web/admin/crontab/__init__.py +++ b/web/admin/crontab/__init__.py @@ -20,6 +20,7 @@ import thisdb blueprint = Blueprint('crontab', __name__, url_prefix='/crontab', template_folder='../../templates') @blueprint.route('/index', endpoint='index') +@panel_login_required def index(): name = thisdb.getOption('template', default='default') return render_template('%s/crontab.html' % name) diff --git a/web/admin/site/site.py b/web/admin/site/site.py index 84720f5e1..0768e4111 100644 --- a/web/admin/site/site.py +++ b/web/admin/site/site.py @@ -22,6 +22,7 @@ import thisdb blueprint = Blueprint('site', __name__, url_prefix='/site', template_folder='../../templates/default') @blueprint.route('/index', endpoint='index') +@panel_login_required def index(): return render_template('site.html')