hide some information for visible but unreleased releases

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-08-05 16:49:49 +01:00
parent 10f19d46db
commit 7914fba52a
6 changed files with 56 additions and 55 deletions

View file

@ -85,9 +85,9 @@ func MustAuthorise(next http.Handler) http.Handler {
}
func GetSession(r *http.Request) *Session {
if os.Getenv("ARIMELODY_ADMIN_BYPASS") == "true" {
return &Session{}
}
// if ADMIN_BYPASS {
// return &Session{}
// }
var token = ""
// is the session token in context?