projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'b-3.6.1' into mebil
[kivitendo-erp.git]
/
SL
/
DB
/
Employee.pm
diff --git
a/SL/DB/Employee.pm
b/SL/DB/Employee.pm
index
8da20c0
..
0c321b6
100644
(file)
--- a/
SL/DB/Employee.pm
+++ b/
SL/DB/Employee.pm
@@
-27,4
+27,14
@@
sub safe_name {
return $self->name || $self->login;
}
+sub auth_user {
+ my ($self) = @_;
+
+ die 'not an accessor' if scalar(@_) > 1;
+
+ require SL::DB::AuthUser;
+
+ return SL::DB::Manager::AuthUser->find_by(login => $self->login);
+}
+
1;