From b802e5125b209f4a88744386ce9325a3b07e3d35 Mon Sep 17 00:00:00 2001 From: Remigijus Kiminas Date: Tue, 30 Nov 2021 04:35:33 -0500 Subject: [PATCH] Cleanup --- lhc_web/lib/core/lhchat/lhchatadminvalidatorhelper.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lhc_web/lib/core/lhchat/lhchatadminvalidatorhelper.php b/lhc_web/lib/core/lhchat/lhchatadminvalidatorhelper.php index 29e01f6fb3..4692d03d33 100644 --- a/lhc_web/lib/core/lhchat/lhchatadminvalidatorhelper.php +++ b/lhc_web/lib/core/lhchat/lhchatadminvalidatorhelper.php @@ -318,8 +318,6 @@ public static function validateCannedMessage(erLhcoreClassModelCannedMsg & $cann // -1 means, individual per department $cannedMessage->department_id = -1; - // You cannot modify canned messages for the departments you are not assigned to - if ($userDepartments !== true) { if ( ($cannedMessage->department_id == 0 && !erLhcoreClassUser::instance()->hasAccessTo('lhcannedmsg','see_global'))