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' %}