]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Rechte: SL::Auth::all_rights() -> $::auth->all_rights
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:17:02 +0000 (16:17 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:37:27 +0000 (16:37 +0200)
SL/Controller/Admin.pm
SL/DB/AuthGroup.pm

index c2d9f29e7228ec85634468ce33ddd230ada569d7..2fb7de6ef7007297b468e0f21a11fa190521e72f 100644 (file)
@@ -86,7 +86,7 @@ sub action_create_auth_tables {
     SL::DB::AuthGroup->new(
       name        => t8('Full Access'),
       description => t8('Full access to all functions'),
-      rights      => [ map { SL::DB::AuthGroupRight->new(right => $_, granted => 1) } SL::Auth::all_rights() ],
+      rights      => [ map { SL::DB::AuthGroupRight->new(right => $_, granted => 1) } $::auth->all_rights ],
     )->save;
   }
 
index 23dabb50c1782194514af70adf6803dce0aefe79..033178643262716556a9d7b92ff6f5f732a1f32c 100644 (file)
@@ -48,11 +48,11 @@ sub rights_map {
 
   if (@_) {
     my %new_rights = ref($_[0]) eq 'HASH' ? %{ $_[0] } : @_;
-    $self->rights([ map { SL::DB::AuthGroupRight->new(right => $_, granted => $new_rights{$_} ? 1 : 0) } SL::Auth::all_rights() ]);
+    $self->rights([ map { SL::DB::AuthGroupRight->new(right => $_, granted => $new_rights{$_} ? 1 : 0) } $::auth->all_rights ]);
   }
 
   return {
-    map({ ($_        => 0)           } SL::Auth::all_rights()),
+    map({ ($_        => 0)           } $::auth->all_rights),
     map({ ($_->right => $_->granted) } @{ $self->rights || [] })
   };
 }