From: Moritz Bunkus Date: Wed, 13 Feb 2019 10:45:58 +0000 (+0100) Subject: Ergebnis von SL::DB::Manager::Employee->current cachen X-Git-Tag: release-3.5.4~141 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4ad4574fe26748f2bf5658c2dd9ba3d896cd8077;p=kivitendo-erp.git Ergebnis von SL::DB::Manager::Employee->current cachen --- diff --git a/SL/DB/Manager/Employee.pm b/SL/DB/Manager/Employee.pm index a8c690ade..f9642ab7b 100644 --- a/SL/DB/Manager/Employee.pm +++ b/SL/DB/Manager/Employee.pm @@ -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 {