summaryrefslogtreecommitdiff
path: root/httemplate/misc/delete-note.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-05-15 10:49:38 -0700
committerIvan Kohler <ivan@freeside.biz>2017-05-15 10:49:38 -0700
commit1cd83e5112019111a8f6c16eacd5264a95abcfb2 (patch)
treef2168c6a593233a54de0a67bbc0a0f7390d2f1e4 /httemplate/misc/delete-note.html
parent9d1c56465919772772ec8b11fec196c8506865bb (diff)
separate edit and delete rights for customer notes, RT#76001
Diffstat (limited to 'httemplate/misc/delete-note.html')
-rw-r--r--httemplate/misc/delete-note.html4
1 files changed, 2 insertions, 2 deletions
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;
</%init>
-<% $cgi->redirect($p.'view/cust_main.cgi?'.$note->custnum) %>
+<% $cgi->redirect($p.'view/cust_main.cgi?custnum='.$note->custnum. ';show=notes') %>