projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ba22d
)
Convenience-Funktion zum Auslesen von Employee-Objekten zu einer AuthGroup
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 25 Oct 2010 13:13:38 +0000
(15:13 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 13 Jan 2011 11:28:30 +0000
(12:28 +0100)
SL/DB/AuthGroup.pm
patch
|
blob
|
history
diff --git
a/SL/DB/AuthGroup.pm
b/SL/DB/AuthGroup.pm
index
8bd5450
..
fe755c7
100644
(file)
--- a/
SL/DB/AuthGroup.pm
+++ b/
SL/DB/AuthGroup.pm
@@
-29,4
+29,9
@@
__PACKAGE__->meta->add_relationship(
__PACKAGE__->meta->initialize;
+sub get_employees {
+ my @logins = map { $_->login } $_[0]->users;
+ return @logins ? @{ SL::DB::Manager::Employee->get_all(query => [ login => \@logins ]) } : ();
+}
+
1;