aboutsummaryrefslogtreecommitdiff
path: root/templates/base.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.qtpl')
-rw-r--r--templates/base.qtpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/base.qtpl b/templates/base.qtpl
index 2a42cb8..db9deee 100644
--- a/templates/base.qtpl
+++ b/templates/base.qtpl
@@ -38,6 +38,13 @@ Page {
}
%}
+
+{% code func IsAuthenticationDisabled(ctx context.Context) bool {
+ t, ok := ctx.Value("disableAuthentication").(bool)
+ return ok && t
+ }
+%}
+
{% code func IsLoggedIn(ctx context.Context) bool {
t, ok := ctx.Value("logged").(bool)
return ok && t