Convenience: Employee->has_right() als Wrapper um $::auth->check_right()
[kivitendo-erp.git] / SL / DB / Employee.pm
index 1ef565e..8688e82 100644 (file)
@@ -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;