[freeside-commits] branch master updated. 1dd01d7a9cf72afc02daf5071f2dbbda199191ed

Christopher Burger burgerc at 420.am
Wed Aug 2 08:44:45 PDT 2017


The branch, master has been updated
       via  1dd01d7a9cf72afc02daf5071f2dbbda199191ed (commit)
      from  74dcfa11ddacefb8349a2811525f704284b13b2b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1dd01d7a9cf72afc02daf5071f2dbbda199191ed
Author: Christopher Burger <burgerc at freeside.biz>
Date:   Wed Aug 2 11:44:08 2017 -0400

    RT# 73490 - updated group access right with better name, and set one time migration to update all groups.

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';

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/AccessRight.pm                    |    2 +-
 FS/FS/access_right.pm                   |    1 +
 httemplate/elements/notify-tickets.html |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list