diff options
Diffstat (limited to 'httemplate/misc/delete-note.html')
-rw-r--r-- | httemplate/misc/delete-note.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/misc/delete-note.html b/httemplate/misc/delete-note.html index 436326f..e6d2127 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; </%init> -<% $cgi->redirect($p.'view/cust_main.cgi?'.$note->custnum) %> +<% $cgi->redirect($p.'view/cust_main.cgi?custnum='.$note->custnum. ';show=notes') %> |