]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Manager/Employee.pm
switch to toaddrhpos
[mfinanz.git] / SL / DB / Manager / Employee.pm
index a8c690ade9950cf52da5d4e5dec372f3e6a93f0a..f9642ab7b1b180304c08881d9fdb621c3e3ec175 100644 (file)
@@ -22,7 +22,7 @@ sub _sort_spec {
 
 sub current {
   return undef unless $::myconfig{login};
-  return shift->find_by(login => $::myconfig{login});
+  return $::request->cache('current')->{object} //= shift->find_by(login => $::myconfig{login});
 }
 
 sub update_entries_for_authorized_users {