[freeside-commits] branch master updated. d102d05f9b43d77870d5a0ebdb93bf743f479e8d

Jonathan Prykop jonathan at 420.am
Tue Dec 22 00:59:20 PST 2015


The branch, master has been updated
       via  d102d05f9b43d77870d5a0ebdb93bf743f479e8d (commit)
      from  1259a17db297fa2352619b29f2c5bd34e313cd64 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d102d05f9b43d77870d5a0ebdb93bf743f479e8d
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Tue Dec 22 02:58:34 2015 -0600

    RT#38217 Send email when logging conditions are met [added null_right and msgtype]

diff --git a/FS/FS/log.pm b/FS/FS/log.pm
index b079105..0c23b12 100644
--- a/FS/FS/log.pm
+++ b/FS/FS/log.pm
@@ -110,6 +110,7 @@ sub insert {
       next;
     }
     my $emailerror = $msg_template->send(
+      'msgtype'       => 'admin',
       'to'            => $log_email->to_addr,
       'substitutions' => {
         'loglevel'   => $FS::Log::LEVELS[$self->level], # which has hopefully been loaded...
diff --git a/httemplate/search/cust_msg.html b/httemplate/search/cust_msg.html
index e9aece2..2bfbd7c 100644
--- a/httemplate/search/cust_msg.html
+++ b/httemplate/search/cust_msg.html
@@ -59,8 +59,10 @@ my $conf = new FS::Conf;
 my $title = 'Outgoing Message Log';
 
 #here is the agent virtualization
-my $agentnums_sql =
-  $FS::CurrentUser::CurrentUser->agentnums_sql( 'table' => 'cust_main' );
+my $agentnums_sql = $FS::CurrentUser::CurrentUser->agentnums_sql(
+  'table' => 'cust_main',
+  'null_right' => [ 'View system logs', 'Configuration' ],
+);
 
 my @where = ( $agentnums_sql );
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/log.pm                    |    1 +
 httemplate/search/cust_msg.html |    6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list