-# This file has been auto-generated only because it didn't exist.
-# Feel free to modify it at will; it will not be overwritten automatically.
-
package SL::DB::Employee;
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);
+}
+
+sub safe_name {
+ my ($self) = @_;
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
+ return $self->name || $self->login;
+}
1;