[freeside-commits] branch FREESIDE_3_BRANCH updated. 8424291d41e61bbac4a14444c962bd40fa41c0a1

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


The branch, FREESIDE_3_BRANCH has been updated
       via  8424291d41e61bbac4a14444c962bd40fa41c0a1 (commit)
      from  88221aab94693778dcf8173ef2bc55946c95f710 (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 8424291d41e61bbac4a14444c962bd40fa41c0a1
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu May 14 16:19:30 2015 -0700

    fix "Download report data" ACL upgrade

diff --git a/FS/FS/access_right.pm b/FS/FS/access_right.pm
index 6de16f6..14a6098 100644
--- a/FS/FS/access_right.pm
+++ b/FS/FS/access_right.pm
@@ -294,6 +294,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