summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-08-02 11:44:08 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-08-02 11:44:08 -0400
commit1dd01d7a9cf72afc02daf5071f2dbbda199191ed (patch)
treeeecbe1dff3b3f889ea7f018bcfdb934eca038e16
parent74dcfa11ddacefb8349a2811525f704284b13b2b (diff)
RT# 73490 - updated group access right with better name, and set one time migration to update all groups.
-rw-r--r--FS/FS/AccessRight.pm2
-rw-r--r--FS/FS/access_right.pm1
-rw-r--r--httemplate/elements/notify-tickets.html2
3 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm
index 6b2dc4a..161e466 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 29c91b0..409b441 100644
--- a/FS/FS/access_right.pm
+++ b/FS/FS/access_right.pm
@@ -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',
],
diff --git a/httemplate/elements/notify-tickets.html b/httemplate/elements/notify-tickets.html
index ce367de..b2541f0 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';