diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-08-02 11:44:08 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-08-16 12:40:13 -0400 |
commit | 09ae8565ecf6d252ab770e5efacd4c305103a34a (patch) | |
tree | 404ed8a11f669e43537e4e9225811d900a92ce04 | |
parent | 0868e3d3883695b4acf8fbb0c61a08f2249af389 (diff) |
RT# 73490 - updated group access right with better name, and set one time migration to update all groups.
Conflicts:
FS/FS/access_right.pm
-rw-r--r-- | FS/FS/AccessRight.pm | 2 | ||||
-rw-r--r-- | FS/FS/access_right.pm | 1 | ||||
-rw-r--r-- | httemplate/elements/notify-tickets.html | 2 |
3 files changed, 3 insertions, 2 deletions
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'; |