X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FTopQuickSearch.pm;h=03d6504438a8534d761d835a603b460de8e5021a;hb=d4c5ff04f33e7fe29e079c4489c4126a7ea2493c;hp=d6ce6e1fc2af389e4d1d9079a71f2d10e57a8b7d;hpb=0c227fb25b4f1547bf3b2be5e5711f0bffe591d1;p=kivitendo-erp.git diff --git a/SL/Controller/TopQuickSearch.pm b/SL/Controller/TopQuickSearch.pm index d6ce6e1fc..03d650443 100644 --- a/SL/Controller/TopQuickSearch.pm +++ b/SL/Controller/TopQuickSearch.pm @@ -88,7 +88,7 @@ sub enabled_modules { sub active_modules { grep { - $::auth->assert($_->auth, 1) + !$_->auth || $::auth->assert($_->auth, 1) } $_[0]->enabled_modules } @@ -101,7 +101,7 @@ sub init_module { die 'Unknown module ' . $::form->{module} unless my $class = $modules_by_name{$::form->{module}}; - $::auth->assert($class->auth); + $::auth->assert($class->auth) if $class->auth; return $class->new; }