Removed FORCED_WHITELABEL
This removes the env var FORCED_WHITELABEL, this was only used for testing in the early days of whitelabel and is unused now
This commit is contained in:
parent
d32d07287b
commit
c5da11792c
@ -20,15 +20,6 @@ func VerifyWhitelabel(isApi bool) func(ctx *gin.Context) {
|
||||
}
|
||||
|
||||
if tier < premium.Whitelabel {
|
||||
var isForced bool
|
||||
for _, id := range config.Conf.ForceWhitelabel {
|
||||
if id == userId {
|
||||
isForced = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if !isForced {
|
||||
if isApi {
|
||||
ctx.AbortWithStatusJSON(402, gin.H{
|
||||
"success": false,
|
||||
@ -42,4 +33,3 @@ func VerifyWhitelabel(isApi bool) func(ctx *gin.Context) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ import (
|
||||
|
||||
type Config struct {
|
||||
Admins []uint64 `env:"ADMINS"`
|
||||
ForceWhitelabel []uint64 `env:"FORCED_WHITELABEL"`
|
||||
Debug bool `env:"DEBUG"`
|
||||
SentryDsn *string `env:"SENTRY_DSN"`
|
||||
JsonLogs bool `env:"JSON_LOGS" envDefault:"false"`
|
||||
|
@ -9,9 +9,8 @@
|
||||
---
|
||||
|
||||
- ADMINS
|
||||
- FORCED_WHITELABEL
|
||||
- SENTRY_DSN
|
||||
- SERVER_ADDR
|
||||
- SERVER_ADD
|
||||
- METRIC_SERVER_ADDR
|
||||
- BASE_URL
|
||||
- MAIN_SITE
|
||||
|
Loading…
x
Reference in New Issue
Block a user