fix: default value for disable playground

This commit is contained in:
Lakhan Samani
2023-09-09 07:11:13 +05:30
parent fbdc24f314
commit 1d6f569f92
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ func PlaygroundHandler() gin.HandlerFunc {
disablePlayground, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisablePlayGround)
if err != nil {
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