From 6d42808bbd3ac9c840c6259aef1dc79a0dc620ff Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Tue, 20 Oct 2015 20:56:13 -0500 Subject: RT#38217: Send email when logging conditions are met --- httemplate/edit/process/log_email.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 httemplate/edit/process/log_email.html (limited to 'httemplate/edit/process') diff --git a/httemplate/edit/process/log_email.html b/httemplate/edit/process/log_email.html new file mode 100644 index 000000000..769e180a8 --- /dev/null +++ b/httemplate/edit/process/log_email.html @@ -0,0 +1,18 @@ +<% include('elements/process.html', + 'table' => 'log_email', + %processopts + ) %> +<%init> + +my %opts = @_; + +my $curuser = $FS::CurrentUser::CurrentUser; + +die "access denied" + unless $curuser->access_right([ 'View system logs', 'Configuration' ]); + +my %processopts = $opts{'popup'} + ? ( 'popup_reload' => 'Logging email added' ) + : ( 'redirect' => $fsurl.'browse/log_email.html?' ); # id will be needlessly appended, should be harmless + + -- cgit v1.2.1