1 package SL::DB::Employee;
5 use SL::DB::MetaSetup::Employee;
6 use SL::DB::Manager::Employee;
8 __PACKAGE__->meta->add_relationship(
9 project_invoice_permissions => {
10 type => 'many to many',
11 map_class => 'SL::DB::EmployeeProjectInvoices',
15 __PACKAGE__->meta->initialize;
21 return $::auth->check_right($self->login, $right);
27 return $self->name || $self->login;