X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c377a2dac9813ef97651e747ece0def8acbad5d6..cf889668782d1ffbb76b9f28e1d36848544fa3b3:/SL/DB/Employee.pm diff --git a/SL/DB/Employee.pm b/SL/DB/Employee.pm index 1ef565ee6..8688e8297 100644 --- a/SL/DB/Employee.pm +++ b/SL/DB/Employee.pm @@ -5,5 +5,11 @@ 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); +} 1;