diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-08-01 13:53:42 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-08-01 13:53:42 -0400 |
commit | 5665dc8243598e7ca6567719b6e91efcfbbea209 (patch) | |
tree | 5944b4e9154f72bf8bdca0d1159942f74f4a16a5 /httemplate | |
parent | 1043f465a4c6a1ab94df2e22823a2a688e102bcd (diff) |
RT # 73490 - removed global conf and user pref check for hide tickets and added group access control.
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/notify-tickets.html | 6 | ||||
-rw-r--r-- | httemplate/pref/pref-process.html | 1 | ||||
-rw-r--r-- | httemplate/pref/pref.html | 7 |
3 files changed, 1 insertions, 13 deletions
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 @@ -137,13 +137,6 @@ </TR> <TR> - <TH ALIGN="right"><% emt('Hide notification of new ticket activity') %></TH> - <TD ALIGN="left"> - <INPUT TYPE="checkbox" NAME="hide_notify_tickets" VALUE="1" <% $curuser->option('hide_notify_tickets') ? 'CHECKED' : '' %>> - </TD> - </TR> - - <TR> <TH ALIGN="right"><% emt("How many recently-modified customers displayed on dashboard") %></TH> <TD ALIGN="left" COLSPAN=2> <INPUT TYPE="text" NAME="dashboard_customers" VALUE="<% $curuser->option('dashboard_customers') %>"></TD> |