X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fnotify-tickets.html;h=b2541f0e71713f8f98444cc4fd446b4c4c0c2e47;hp=b545063381908422fa1e51ac55326516c5f50599;hb=5b0df166c22e13eba83fabee858846ead6a54141;hpb=09a43bd0984104796052ceee7fdae0581612535d diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html index b54506338..b2541f0e7 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 unless $FS::CurrentUser::CurrentUser->access_right('RT activity notification'); my $UnrepliedTickets; if ($enabled) { my $class = 'RT::Search::UnrepliedTickets';