[freeside-commits] branch master updated. 1ceadcdc438057c510677d492048e8898dfc015a

Ivan ivan at 420.am
Thu May 14 16:19:30 PDT 2015


The branch, master has been updated
       via  1ceadcdc438057c510677d492048e8898dfc015a (commit)
      from  391e97780f7b489e9c632a6cac3663255ca44808 (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 1ceadcdc438057c510677d492048e8898dfc015a
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu May 14 16:19:26 2015 -0700

    fix "Download report data" ACL upgrade

diff --git a/FS/FS/access_right.pm b/FS/FS/access_right.pm
index 7a4c4da..40475ec 100644
--- a/FS/FS/access_right.pm
+++ b/FS/FS/access_right.pm
@@ -297,6 +297,7 @@ sub _upgrade_data { # class method
 
     # grant to everyone
     for my $group (@all_groups) {
+      next if $group->access_right('Download report data');
       my $access_right = FS::access_right->new( {
           'righttype'   => 'FS::access_group',
           'rightobjnum' => $group->groupnum,

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

Summary of changes:
 FS/FS/access_right.pm |    1 +
 1 file changed, 1 insertion(+)




More information about the freeside-commits mailing list