Skip to content

Commit

Permalink
security fix: clone the ticket to set CurrentUser
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed May 13, 2010
1 parent 4fe4646 commit 2338cd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/RT/Scrips_Overlay.pm
Expand Up @@ -283,7 +283,10 @@ sub _SetupSourceObjects {
TransactionObj => undef,
@_ );

if ( ( $self->{'TicketObj'} = $args{'TicketObj'} ) ) {

if ( $args{'TicketObj'} ) {
# clone the ticket here as we need to change CurrentUser
$self->{'TicketObj'} = bless { %{$args{'TicketObj'} } }, 'RT::Ticket';
$self->{'TicketObj'}->CurrentUser( $self->CurrentUser );
}
else {
Expand Down

0 comments on commit 2338cd1

Please sign in to comment.