Skip to content

Commit

Permalink
Pass CurrentUser to HandleAction methods
Browse files Browse the repository at this point in the history
CurrentUser is often needed for mail actions, so pass
it as a parameter to HandleAction methods. Also makes
the code consistent with the Mail plugins documentation
which lists CurrentUser as a passed parameter.
  • Loading branch information
cbrandtbuffalo committed Mar 29, 2016
1 parent c50ba85 commit 0ead601
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/RT/Interface/Email.pm
Expand Up @@ -248,6 +248,7 @@ sub Gateway {
Action => $action,
Subject => $Subject,
Message => $Message,
CurrentUser => $CurrentUser,
Ticket => $Ticket,
TicketId => $args{ticket},
Queue => $SystemQueueObj,
Expand Down

0 comments on commit 0ead601

Please sign in to comment.