From e205dd5789bf43fe478e08924f821a0b695af4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20P=C3=BCttmanns?= Date: Tue, 1 Aug 2023 13:55:56 +0000 Subject: [PATCH 1/2] Fixed ReturnSubType check --- Kernel/System/Ticket/TicketACL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/System/Ticket/TicketACL.pm b/Kernel/System/Ticket/TicketACL.pm index b19816c68fe..06374078b9a 100644 --- a/Kernel/System/Ticket/TicketACL.pm +++ b/Kernel/System/Ticket/TicketACL.pm @@ -204,7 +204,7 @@ sub TicketAcl { else { # a scalar, we hope - next MODULENAME if !$Module->{ReturnSubType} eq $Param{ReturnSubType}; + next MODULENAME if $Module->{ReturnSubType} ne $Param{ReturnSubType}; } } From c4a30ad3223d6175ec27166e44591f248216f996 Mon Sep 17 00:00:00 2001 From: tipue Date: Fri, 1 Sep 2023 12:08:06 +0200 Subject: [PATCH 2/2] Fixed wrong reference --- Kernel/System/Ticket/TicketACL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/System/Ticket/TicketACL.pm b/Kernel/System/Ticket/TicketACL.pm index 06374078b9a..d671d1e97b5 100644 --- a/Kernel/System/Ticket/TicketACL.pm +++ b/Kernel/System/Ticket/TicketACL.pm @@ -197,7 +197,7 @@ sub TicketAcl { next MODULENAME; } if ( $Module->{ReturnSubType} ) { - if ( ref( $Module->{ReturnSubType} ) eq 'HASH' ) { + if ( ref( $Module->{ReturnSubType} ) eq 'ARRAY' ) { next MODULENAME if !grep { $Param{ReturnSubType} eq $_ } @{ $Module->{ReturnSubType} }; }