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 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'httemplate/elements/notify-tickets.html') 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'; -- cgit v1.2.1