login nicht aus $::form nehmen. Teil 1
[kivitendo-erp.git] / SL / DB / Manager / Employee.pm
index 410a04a..796b056 100644 (file)
@@ -21,8 +21,8 @@ sub _sort_spec {
 }
 
 sub current {
-  return undef unless $::form && $::form->{login};
-  return shift->find_by(login => $::form->{login});
+  return undef unless $::myconfig{login};
+  return shift->find_by(login => $::myconfig{login});
 }
 
 sub update_entries_for_authorized_users {