X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Faccess_right.pm;h=121bd4a400717c9fe84338d80fbbc6a9e5d325e8;hb=f7fa8fab5916969bac62635facfc1c2d30258b44;hp=6de16f608ae42988ff803275cd26b5d94a05743e;hpb=86637503b5608164cf31aea501f131c74e27b724;p=freeside.git diff --git a/FS/FS/access_right.pm b/FS/FS/access_right.pm index 6de16f608..121bd4a40 100644 --- a/FS/FS/access_right.pm +++ b/FS/FS/access_right.pm @@ -252,6 +252,7 @@ sub _upgrade_data { # class method 'Unvoid credit' => 'Unvoid credit', 'Add on-the-fly void credit reason' => 'Add on-the-fly void credit reason', '_ALL' => 'Employee preference telephony integration', + 'Add on-the-fly credit reason' => 'Add on-the-fly refund reason', ); # foreach my $old_acl ( keys %onetime ) { @@ -294,6 +295,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,