aboutsummaryrefslogtreecommitdiff
path: root/internal/template/functions.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/template/functions.go')
-rw-r--r--internal/template/functions.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/internal/template/functions.go b/internal/template/functions.go
index cfbfc53d..4a91ffdf 100644
--- a/internal/template/functions.go
+++ b/internal/template/functions.go
@@ -32,13 +32,14 @@ type funcMap struct {
// Map returns a map of template functions that are compiled during template parsing.
func (f *funcMap) Map() template.FuncMap {
return template.FuncMap{
- "formatFileSize": formatFileSize,
- "dict": dict,
- "hasKey": hasKey,
- "truncate": truncate,
- "isEmail": isEmail,
- "baseURL": config.Opts.BaseURL,
- "rootURL": config.Opts.RootURL,
+ "formatFileSize": formatFileSize,
+ "dict": dict,
+ "hasKey": hasKey,
+ "truncate": truncate,
+ "isEmail": isEmail,
+ "baseURL": config.Opts.BaseURL,
+ "rootURL": config.Opts.RootURL,
+ "disableLocalAuth": config.Opts.DisableLocalAuth,
"hasOAuth2Provider": func(provider string) bool {
return config.Opts.OAuth2Provider() == provider
},