RT# 73490 - updated group access right with better name, and set one time migration...
authorChristopher Burger <burgerc@freeside.biz>
Wed, 2 Aug 2017 15:44:08 +0000 (11:44 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Wed, 16 Aug 2017 16:40:13 +0000 (12:40 -0400)
Conflicts:
FS/FS/access_right.pm

FS/FS/AccessRight.pm
FS/FS/access_right.pm
httemplate/elements/notify-tickets.html

index 40b5b37..aba5be2 100644 (file)
@@ -363,7 +363,7 @@ tie my %rights, 'Tie::IxHash',
   #]
 
   #'RT preference rights' => [
-    { rightname=>'not an RT' },
+    { rightname=>'RT activity notification' },
   #]
 
   ],
index c771a15..0bcd84f 100644 (file)
@@ -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',
index aebbef6..083e815 100644 (file)
@@ -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';