fix: default value for disable playground
This commit is contained in:
parent
fbdc24f314
commit
1d6f569f92
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19.5-alpine as go-builder
|
FROM golang:1.21.1-alpine as go-builder
|
||||||
WORKDIR /authorizer
|
WORKDIR /authorizer
|
||||||
COPY server server
|
COPY server server
|
||||||
COPY Makefile .
|
COPY Makefile .
|
||||||
|
|
|
@ -21,7 +21,7 @@ func PlaygroundHandler() gin.HandlerFunc {
|
||||||
disablePlayground, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisablePlayGround)
|
disablePlayground, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisablePlayGround)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug("error while getting disable playground value")
|
log.Debug("error while getting disable playground value")
|
||||||
return
|
disablePlayground = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// if env set to false, then check if logged in as super admin, if logged in then return graphql else 401 error
|
// if env set to false, then check if logged in as super admin, if logged in then return graphql else 401 error
|
||||||
|
|
Loading…
Reference in New Issue
Block a user