diff options
| author | Jonathan Prykop <jonathan@freeside.biz> | 2015-10-20 20:56:13 -0500 |
|---|---|---|
| committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-12-22 03:10:18 -0600 |
| commit | 7461526f923d4cc9341b5bbebad3bf409b778120 (patch) | |
| tree | a0a395c4836066010abf2a46c003a2e5e372773a /httemplate/edit/process | |
| parent | 796750496ab90b7e10823e2a3a008b600ab8f090 (diff) | |
RT#38217 Send email when logging conditions are met [v4 merge]
Diffstat (limited to 'httemplate/edit/process')
| -rw-r--r-- | httemplate/edit/process/log_email.html | 18 |
1 files changed, 18 insertions, 0 deletions
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 + +</%init> |
