From: Christopher Burger Date: Wed, 2 Aug 2017 15:44:08 +0000 (-0400) Subject: RT# 73490 - updated group access right with better name, and set one time migration... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=09ae8565ecf6d252ab770e5efacd4c305103a34a RT# 73490 - updated group access right with better name, and set one time migration to update all groups. Conflicts: FS/FS/access_right.pm --- diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm index 40b5b37c6..aba5be200 100644 --- a/FS/FS/AccessRight.pm +++ b/FS/FS/AccessRight.pm @@ -363,7 +363,7 @@ tie my %rights, 'Tie::IxHash', #] #'RT preference rights' => [ - { rightname=>'not an RT' }, + { rightname=>'RT activity notification' }, #] ], diff --git a/FS/FS/access_right.pm b/FS/FS/access_right.pm index c771a1544..0bcd84f43 100644 --- a/FS/FS/access_right.pm +++ b/FS/FS/access_right.pm @@ -252,6 +252,7 @@ sub _upgrade_data { # class method 'Unvoid credit' => 'Unvoid credit', 'Add on-the-fly void credit reason' => 'Add on-the-fly void credit reason', '_ALL' => 'Employee preference telephony integration', + '_ALL' => 'RT activity notification', 'Add on-the-fly credit reason' => 'Add on-the-fly refund reason', 'Resend invoices' => 'Print and mail invoices', 'List customers' => 'Customers: Customer churn report', diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html index aebbef669..083e81512 100644 --- a/httemplate/elements/notify-tickets.html +++ b/httemplate/elements/notify-tickets.html @@ -14,7 +14,7 @@ use Class::Load 'load_class'; my $enabled = $FS::TicketSystem::system eq 'RT_Internal'; -$enabled = 0 if $FS::CurrentUser::CurrentUser->access_right('not an RT'); +$enabled = 0 unless $FS::CurrentUser::CurrentUser->access_right('RT activity notification'); my $UnrepliedTickets; if ($enabled) { my $class = 'RT::Search::UnrepliedTickets';