policies: don't use policy cache when checking application access

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-20 13:30:01 +02:00
parent ef77a4b64e
commit f7047df40e
2 changed files with 2 additions and 1 deletions

View file

@ -105,6 +105,7 @@ class PolicyAccessView(AccessMixin, View):
policy_engine = PolicyEngine(
self.application, user or self.request.user, self.request
)
policy_engine.use_cache = False
policy_engine.build()
result = policy_engine.result
LOGGER.debug(

View file

@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: authentik
version: 2021.6.1-rc6
version: 2021.6.1
description: Making authentication simple.
contact:
email: hello@beryju.org