% if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) { <%$label%> % } <%init> my %opt = @_; my $table = $opt{'table'}; my $search_hash = $opt{'search_hash'}; die "'table' required" if !$table; die "'search_hash' required" if !$search_hash; my $uri = new URI; $uri->query_form($search_hash); my $query = $uri->query; my $label = ($opt{'label'} || 'Email a notice to these customers');