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, 2 Aug 2017 15:44:08 +0000 (11:44 -0400)
FS/FS/AccessRight.pm
FS/FS/access_right.pm
httemplate/elements/notify-tickets.html

index 6b2dc4a..161e466 100644 (file)
@@ -363,7 +363,7 @@ tie my %rights, 'Tie::IxHash',
   #]
 
   #'RT preference rights' => [
-    { rightname=>'not an RT' },
+    { rightname=>'RT activity notification' },
   #]
 
   ],
index 29c91b0..409b441 100644 (file)
@@ -253,6 +253,7 @@ sub _upgrade_data { # class method
     'Generate quotation' => 'Disable quotation',
     'Add on-the-fly void credit reason' => 'Add on-the-fly void reason',
     '_ALL' => 'Employee preference telephony integration',
+    '_ALL' => 'RT activity notification',
     'Edit customer package dates' => [ 'Change package start date', #4.x
                                        'Change package contract end date',
                                      ],
index ce367de..b2541f0 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';