projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Speicherroutine darf nur auf "customer_vendor_edit" testen
[kivitendo-erp.git]
/
SL
/
DB
/
Employee.pm
diff --git
a/SL/DB/Employee.pm
b/SL/DB/Employee.pm
index
841696b
..
9244455
100644
(file)
--- a/
SL/DB/Employee.pm
+++ b/
SL/DB/Employee.pm
@@
-1,13
+1,21
@@
-# This file has been auto-generated only because it didn't exist.
-# Feel free to modify it at will; it will not be overwritten automatically.
-
package SL::DB::Employee;
use strict;
use SL::DB::MetaSetup::Employee;
package SL::DB::Employee;
use strict;
use SL::DB::MetaSetup::Employee;
+use SL::DB::Manager::Employee;
+
+sub has_right {
+ my $self = shift;
+ my $right = shift;
+
+ return $::auth->check_right($self->login, $right);
+}
+
+sub safe_name {
+ my ($self) = @_;
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
+ return $self->name || $self->login;
+}
1;
1;