X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FEmployee.pm;h=8da20c0b9935148259156a2e24aeb2911dce8e5d;hb=3c22e5f4b953f463a33b722d6f4f122e4a20c99a;hp=92444551e54e604cec32f55a505a2b4f0d77388a;hpb=2b44867fc2d4e3c061c126890cc90fcaa84b6baa;p=kivitendo-erp.git diff --git a/SL/DB/Employee.pm b/SL/DB/Employee.pm index 92444551e..8da20c0b9 100644 --- a/SL/DB/Employee.pm +++ b/SL/DB/Employee.pm @@ -5,6 +5,15 @@ use strict; use SL::DB::MetaSetup::Employee; use SL::DB::Manager::Employee; +__PACKAGE__->meta->add_relationship( + project_invoice_permissions => { + type => 'many to many', + map_class => 'SL::DB::EmployeeProjectInvoices', + }, +); + +__PACKAGE__->meta->initialize; + sub has_right { my $self = shift; my $right = shift;