From f1d923f5806455b067d407c93e137b07d1c51def Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Sun, 27 Mar 2022 11:58:29 +0200 Subject: [PATCH] Support: Allow agents to prevent banned users from creating tickets --- Web/Presenters/templates/User/banned.xml | 59 ++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/Web/Presenters/templates/User/banned.xml b/Web/Presenters/templates/User/banned.xml index f1e6f8c1..f0e7e661 100644 --- a/Web/Presenters/templates/User/banned.xml +++ b/Web/Presenters/templates/User/banned.xml @@ -4,13 +4,21 @@ {tr("user_banned", htmlentities($user->getFirstName()))|noescape}
{_"user_banned_comment"} {$user->getBanReason()}.

-

-
{_unban_user_action} +

+
+ {_unban_user_action} + + {if $user->isBannedInSupport()} + {_unban_in_support_user_action} + {else} + {_ban_in_support_user_action} + {/if} +

+ +