X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fdelete-note.html;h=e6d21271ed639d36bab14548030ec5bfbc489ab6;hp=436326ff19149b9ef223f716e607449163a4e58e;hb=HEAD;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 diff --git a/httemplate/misc/delete-note.html b/httemplate/misc/delete-note.html index 436326ff1..e6d21271e 100644 --- a/httemplate/misc/delete-note.html +++ b/httemplate/misc/delete-note.html @@ -1,6 +1,6 @@ <%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'"; @@ -8,4 +8,4 @@ my $note = FS::cust_main_note->by_key($notenum) or die "notenum '$notenum' not found"; $note->delete; -<% $cgi->redirect($p.'view/cust_main.cgi?'.$note->custnum) %> +<% $cgi->redirect($p.'view/cust_main.cgi?custnum='.$note->custnum. ';show=notes') %>