From b09e5468a1e8ad0c8c9c7f8f5f0f10ebee1ffb0d Mon Sep 17 00:00:00 2001 From: AlvoBen Date: Thu, 28 Nov 2024 13:00:38 +0200 Subject: [PATCH] Change IsAllowedEngine func to return true when packageEnforcementEnabled is set to false because that means that user has license for everything --- internal/wrappers/jwt-helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/wrappers/jwt-helper.go b/internal/wrappers/jwt-helper.go index 39d8bc301..7fea00555 100644 --- a/internal/wrappers/jwt-helper.go +++ b/internal/wrappers/jwt-helper.go @@ -79,7 +79,7 @@ func (*JWTStruct) IsAllowedEngine(engine string, featureFlagsWrapper FeatureFlag } } } - return false, nil + return true, nil } func prepareEngines(engines []string) map[string]bool {