projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sortieren von Steuerzonen in Belegen
[kivitendo-erp.git]
/
SL
/
DB
/
Employee.pm
diff --git
a/SL/DB/Employee.pm
b/SL/DB/Employee.pm
index
1ef565e
..
4cc109a
100644
(file)
--- a/
SL/DB/Employee.pm
+++ b/
SL/DB/Employee.pm
@@
-5,5
+5,19
@@
use strict;
use SL::DB::MetaSetup::Employee;
use SL::DB::Manager::Employee;
use SL::DB::MetaSetup::Employee;
use SL::DB::Manager::Employee;
+__PACKAGE__->meta->initialize;
+
+sub has_right {
+ my $self = shift;
+ my $right = shift;
+
+ return $::auth->check_right($self->login, $right);
+}
+
+sub safe_name {
+ my ($self) = @_;
+
+ return $self->name || $self->login;
+}
1;
1;