Hide user settings if login is disabled (#356) (#361)

This commit is contained in:
ByteDream 2023-05-24 12:04:02 +02:00 committed by GitHub
parent cfbdae7abb
commit ec757286c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -128,10 +128,11 @@ func main() {
panic(err)
}
// set app extra data
extraData := make(map[string]string)
extraData := make(map[string]interface{})
extraData["appVersion"] = appVersion
extraData["gitCommit"] = gitCommit
extraData["basePath"] = util.BasePath
extraData["loginDisabled"] = flagDisableLogin
// strip the "templates/" prefix from the embedded directory so files can be read by their direct name (e.g.
// "base.html" instead of "templates/base.html")