- unless ( $Ticket->CurrentUserHasRight('ShowTicket') ) {
- $m->comp( 'Error.html',
- Why => loc("No permission to display that ticket") );
- # XXX: Why abort? then we loose footer //ruz
- $m->abort();
- }
-
- if ( $ARGS{'MarkAsSeen'} ) {
- $Ticket->SetAttribute(
- Name => 'User-'. $Ticket->CurrentUser->id .'-SeenUpTo',
- Content => $Ticket->LastUpdated,
- );
- push @results, loc('Marked all messages as seen');
- }
-
- # This code does automatic redirection if any updates happen.
- MaybeRedirectForResults(
- Actions => \@results,
- Path => '/SelfService/Display.html',
- Anchor => $ARGS{'Anchor'},
- Arguments => { id => $Ticket->id },
+if ( $ARGS{'MarkAsSeen'} ) {
+ $Ticket->SetAttribute(
+ Name => 'User-'. $Ticket->CurrentUser->id .'-SeenUpTo',
+ Content => $Ticket->LastUpdated,