<%init>
die "access denied"
- unless $FS::CurrentUser::CurrentUser->access_right('Edit customer note');
+ unless $FS::CurrentUser::CurrentUser->access_right('Delete customer note');
my ($notenum) = $cgi->keywords;
$notenum =~ /^\d+$/ or die "bad notenum '$notenum'";
or die "notenum '$notenum' not found";
$note->delete;
</%init>
-<% $cgi->redirect($p.'view/cust_main.cgi?'.$note->custnum) %>
+<% $cgi->redirect($p.'view/cust_main.cgi?custnum='.$note->custnum. ';show=notes') %>