Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

$session{CurrentUser} could be undef when user is not logged in

  • Loading branch information...
commit f4435daa9fc0c8262edc4885a627c71a8ef55b05 1 parent cc985af
sunnavy authored January 16, 2012
5  html/Callbacks/Hotkeys/Elements/Header/Head
@@ -14,8 +14,11 @@ jQuery( function() {
14 14
 </script>
15 15
 
16 16
 <%INIT>
  17
+return
  18
+  unless $session{CurrentUser}
  19
+      && !RT->Config->Get( 'DisableHotkeys', $session{CurrentUser}->UserObj );
  20
+
17 21
 my $user = $session{CurrentUser}->UserObj;
18  
-return if RT->Config->Get('DisableHotkeys', $user);
19 22
 
20 23
 my $conf = $user->Preferences('Hotkeys') || RT->Config->Get('Hotkeys') || {};
21 24
 my $path = $r->path_info;

0 notes on commit f4435da

Please sign in to comment.
Something went wrong with that request. Please try again.