From 09a43bd0984104796052ceee7fdae0581612535d Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Mon, 31 Jul 2017 09:24:50 -0400 Subject: RT# 73490 - added global configuration to check if RT activity alert should be displayed. --- httemplate/elements/notify-tickets.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'httemplate') 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'; -- cgit v1.2.1 From 5665dc8243598e7ca6567719b6e91efcfbbea209 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 1 Aug 2017 13:53:42 -0400 Subject: RT # 73490 - removed global conf and user pref check for hide tickets and added group access control. --- httemplate/elements/notify-tickets.html | 6 +----- httemplate/pref/pref-process.html | 1 - httemplate/pref/pref.html | 7 ------- 3 files changed, 1 insertion(+), 13 deletions(-) (limited to 'httemplate') diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html index b54506338..ce367deeb 100644 --- a/httemplate/elements/notify-tickets.html +++ b/httemplate/elements/notify-tickets.html @@ -13,12 +13,8 @@ <%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'); +$enabled = 0 if $FS::CurrentUser::CurrentUser->access_right('not an RT'); my $UnrepliedTickets; if ($enabled) { my $class = 'RT::Search::UnrepliedTickets'; diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index a87036b36..75e57958f 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -56,7 +56,6 @@ unless ( $error ) { # if ($access_user) { enable_mask_clipboard_hack dashboard_customers customer_view_emails printtofit - hide_notify_tickets email_address snom-ip snom-username snom-password vonage-fromnumber vonage-username vonage-password diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index bb21b0f3c..abd1ea57f 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -136,13 +136,6 @@ - - <% emt('Hide notification of new ticket activity') %> - - option('hide_notify_tickets') ? 'CHECKED' : '' %>> - - - <% emt("How many recently-modified customers displayed on dashboard") %> -- cgit v1.2.1 From cbd61e030fc33f1b858aa874fc25e138d797b4f7 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 1 Aug 2017 15:08:57 -0400 Subject: RT# 75817 - fixed enable selection to send password reset and to allow you to set password in one step --- httemplate/elements/contact.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 850c2540d..7d1f16082 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -57,7 +57,7 @@ >