]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/TimeRecording.pm
Zeiterfassung: Ein Recht dafür
[mfinanz.git] / SL / Controller / TimeRecording.pm
index 95de51388f5edb80be8a4eef3fb1b23d833e87c0..c0a4cdc0c1ea9909167109652b270e88df495246 100644 (file)
@@ -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) = @_;