We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59379f3 commit a893304Copy full SHA for a893304
src/HotChocolate/AspNetCore/src/AspNetCore.Authorization/DefaultAuthorizationHandler.cs
@@ -45,6 +45,8 @@ public DefaultAuthorizationHandler(
45
throw new ArgumentNullException(nameof(authorizationPolicyCache));
46
#if NET7_0_OR_GREATER
47
_canCachePolicies = _authorizationPolicyProvider.AllowsCachingPolicies;
48
+#else
49
+ _canCachePolicies = true;
50
#endif
51
}
52
0 commit comments