Skip to content

Commit

Permalink
Issue #3014: Prevent usage of created ticket data for ACLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Feb 22, 2024
1 parent cf6f0d1 commit 488b16b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Kernel/Modules/AgentTicketPhone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -915,13 +915,16 @@ sub Run {
TicketObject => $TicketObject,
DynamicFields => $Self->{DynamicField},
DynamicFieldBackendObject => $DynamicFieldBackendObject,
ChangedElements => \%ChangedElements, # optional to reduce ACL evaluation
ChangedElements => \%ChangedElements, # optional to reduce ACL evaluation
Action => $Self->{Action},
UserID => $Self->{UserID},
TicketID => $Self->{TicketID},
FormID => $Self->{FormID},
CustomerUser => $SplitTicketData{CustomerUserID} || '',
GetParam => {

# in split ticket case, article id is present
# else, we do not want to falsely use data from created ticket
TicketID => $Article{ArticleID} ? $Self->{TicketID} : '',
FormID => $Self->{FormID},
CustomerUser => $SplitTicketData{CustomerUserID} || '',
GetParam => {
%GetParam,
OwnerID => $GetParam{NewUserID},
},
Expand Down

0 comments on commit 488b16b

Please sign in to comment.