]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/Admin.pm
Rechte: In die Datenbank verlagert
[kivitendo-erp.git] / SL / Controller / Admin.pm
index ebbcb774f7864f32f4af3ff816097884555178ab..d0082b1e307becb91cc6054a4491801a67f8695f 100644 (file)
@@ -528,13 +528,13 @@ sub init_all_rights {
   my (@sections, $current_section);
 
   foreach my $entry ($::auth->all_rights_full) {
-    if ($entry->[0] =~ m/^--/) {
-      push @sections, { description => $entry->[1], rights => [] };
+    if ($entry->[2]) {
+      push @sections, { description => t8($entry->[1]), rights => [] };
 
     } elsif (@sections) {
       push @{ $sections[-1]->{rights} }, {
         name        => $entry->[0],
-        description => $entry->[1],
+        description => t8($entry->[1]),
       };
 
     } else {