% if ( $curuser->access_right('List customers') ) {

Advanced
<% $menu_position eq 'left' ? '
' : '' %> % } <%init> my $conf = new FS::Conf; my $curuser = $FS::CurrentUser::CurrentUser; my $menu_position = $curuser->option('menu_position') || 'top'; my $cust_width = 246; my $cust_label = '(cust #, name, company'; if ( $conf->exists('address1-search') ) { $cust_label .= ', address'; $cust_width += 56; } $cust_label .= ' or contact phone)'; my $width = $menu_position eq 'left' ? '190px' : $cust_width.'px';