X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5916be6b96be6564f9e35188930a2d67654efbbc..c7176e6155cd227ab5ce99d7a02d08982edf1499:/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;