From ae10e121875982d6956d6bff453544cc59a75616 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Tue, 12 Sep 2023 18:37:30 +0200 Subject: feat: Add admin control Now only admins can access settings. --- templates/base.qtpl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'templates/base.qtpl') diff --git a/templates/base.qtpl b/templates/base.qtpl index a80803a..30b084e 100644 --- a/templates/base.qtpl +++ b/templates/base.qtpl @@ -21,7 +21,7 @@ Page { Page prints a page implementing Page interface. -{% func PageTemplate(p Page) %} +{% func PageTemplate(p Page, isAdmin bool) %} @@ -33,18 +33,20 @@ Page prints a page implementing Page interface.
-- cgit v1.2.3