use different color library, wrap logger functions with it

This commit is contained in:
Harvey Tindall
2021-02-19 16:12:14 +00:00
parent b25f786018
commit 78157f763f
7 changed files with 83 additions and 68 deletions

View File

@@ -148,7 +148,6 @@ func (app *appContext) getTokenLogin(gc *gin.Context) {
}
jfID = user.ID
if app.config.Section("ui").Key("admin_only").MustBool(true) {
fmt.Printf("%+v\n", user.Policy)
if !user.Policy.IsAdministrator {
app.debug.Printf("Auth denied: Users \"%s\" isn't admin", creds[0])
respond(401, "Unauthorized", gc)