X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8915e7750d73593e86979e9a6a9016016a70c808..c87080d8d84989ee40c6ae64151bdf23b629afc1:/SL/Controller/TimeRecording.pm diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index 95de51388..c0a4cdc0c 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -23,7 +23,7 @@ use Rose::Object::MakeMethods::Generic # safety -#__PACKAGE__->run_before('check_auth'); +__PACKAGE__->run_before('check_auth'); # # actions @@ -138,6 +138,10 @@ sub init_all_employees { SL::DB::Manager::Employee->get_all_sorted; } +sub check_auth { + $::auth->assert('time_recording'); +} + sub prepare_report { my ($self) = @_;