Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Nov 30, 2021
1 parent 82d4d3f commit b802e51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lhc_web/lib/core/lhchat/lhchatadminvalidatorhelper.php
Expand Up @@ -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'))
Expand Down

0 comments on commit b802e51

Please sign in to comment.