'SL::Controller::TopQuickSearch::Contact',
'SL::Controller::TopQuickSearch::SalesQuotation',
'SL::Controller::TopQuickSearch::SalesOrder',
+ 'SL::Controller::TopQuickSearch::SalesDeliveryOrder',
'SL::Controller::TopQuickSearch::RequestForQuotation',
'SL::Controller::TopQuickSearch::PurchaseOrder',
+ 'SL::Controller::TopQuickSearch::PurchaseDeliveryOrder',
'SL::Controller::TopQuickSearch::GLTransaction',
'SL::Controller::TopQuickSearch::Customer',
'SL::Controller::TopQuickSearch::Vendor',
+ 'SL::Controller::TopQuickSearch::PhoneNumber',
);
my %modules_by_name;
sub active_modules {
grep {
- $::auth->assert($_->auth, 1)
+ !$_->auth || $::auth->assert($_->auth, 1)
} $_[0]->enabled_modules
}
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;
}