From c6c4636b9bfa616f28fb5b18baf39b0868ce068b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 23 Mar 2021 17:14:54 +0100 Subject: [PATCH] policies: show messages of root result Signed-off-by: Jens Langhammer --- authentik/policies/templates/policies/denied.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/authentik/policies/templates/policies/denied.html b/authentik/policies/templates/policies/denied.html index d84d860bb..118869de7 100644 --- a/authentik/policies/templates/policies/denied.html +++ b/authentik/policies/templates/policies/denied.html @@ -29,9 +29,16 @@ {% endif %} {% if policy_result %}
- - {% trans 'Explanation:' %} - + {% trans 'Messages:' %} + + {% if policy_result.source_results %} + {% trans 'Explanation:' %} {% endif %} + {% endif %} {% if 'back' in request.GET %} {% trans 'Back' %}