summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-07-31 09:24:50 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-07-31 09:24:50 -0400
commit09a43bd0984104796052ceee7fdae0581612535d (patch)
treee57e3711252ddd497418e7c4ac9bcd0519192671 /httemplate/elements
parent862381171227acfe4a7bf5e1957de991b3928704 (diff)
RT# 73490 - added global configuration to check if RT activity alert should be displayed.
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/notify-tickets.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html
index 35917c34d..b54506338 100644
--- a/httemplate/elements/notify-tickets.html
+++ b/httemplate/elements/notify-tickets.html
@@ -13,8 +13,12 @@
<%init>
use Class::Load 'load_class';
+use FS::Conf;
+my $conf = new FS::Conf;
+
my $enabled = $FS::TicketSystem::system eq 'RT_Internal';
$enabled = 0 if $FS::CurrentUser::CurrentUser->option('hide_notify_tickets');
+$enabled = 0 if $conf->exists('rt-hide_activity_notification');
my $UnrepliedTickets;
if ($enabled) {
my $class = 'RT::Search::UnrepliedTickets';