--- AgentCustomer.pm.org	2004-02-11 22:01:59.000000000 +0100
+++ AgentCustomer.pm	2004-02-11 22:18:57.000000000 +0100
@@ -160,8 +160,18 @@
     my $Self = shift;
     my %Param = @_;
     my $Output;
+    # --
+    # Check if ticket is locked and owned by current user
+    # --
+    my $BgColor = "";
+    if ($Self->{TicketID}) {
+        my %Ticket = $Self->{TicketObject}->GetTicket(TicketID => $Self->{TicketID});
+        if($Self->{TicketObject}->IsTicketLocked(TicketID => $Self->{TicketID}) && $Ticket{OwnerID} == $Self->{UserID}) {
+            $BgColor = $Self->{ConfigObject}->Get('LockedTicketBackground');
+        }
+    }
     # print header 
-    $Output .= $Self->{LayoutObject}->Header(Area => 'Agent', Title => 'Customer');
+    $Output .= $Self->{LayoutObject}->Header(Area => 'Agent', Title => 'Customer', BgColor => $BgColor);
     my %LockedData = $Self->{TicketObject}->GetLockedCount(UserID => $Self->{UserID});
     $Output .= $Self->{LayoutObject}->NavigationBar(LockData => \%LockedData);
     my $TicketCustomerID = $Self->{CustomerID};
@@ -169,9 +179,6 @@
     # print change form if ticket id is given
     # --
     if ($Self->{TicketID}) {
-        # --
-        # get ticket data 
-        # --
         my %TicketData = $Self->{TicketObject}->GetTicket(TicketID => $Self->{TicketID});
         my %CustomerUserData = ();
         if ($TicketData{CustomerUserID}) {
