send commission reports by email, #33101
[freeside.git] / FS / FS / AccessRight.pm
index 95e7aea..53c7cf6 100644 (file)
@@ -184,7 +184,6 @@ tie my %rights, 'Tie::IxHash',
     'Resend invoices', #NEWNEW
     'Void invoices',
     'Unvoid invoices',
-    'Delete invoices',
     'View customer tax exemptions', #yow
     'Edit customer tax exemptions', #NEWNEW
     'Add customer tax adjustment', #new, but no need to phase in
@@ -192,6 +191,7 @@ tie my %rights, 'Tie::IxHash',
     'View customer pending payments', #NEW
     'Edit customer pending payments', #NEW
     'View customer billing events', #NEW
+    'View legacy typeset statements', #new, but no need to phase in
   ],
   
   ###
@@ -288,6 +288,7 @@ tie my %rights, 'Tie::IxHash',
     'Billing event reports',
     'Receivables report',
     'Financial reports',
+    { rightname=>'Send reports to customers', global=>1 },
     { rightname=> 'List inventory', global=>1 },
     { rightname=>'View email logs', global=>1 },
     { rightname=>'View system logs' },
@@ -405,6 +406,8 @@ tie my %rights, 'Tie::IxHash',
     #{ rightname=>'Edit employees', global=>1, },
     #{ rightname=>'Edit employee groupss', global=>1, },
 
+    { rightname=>'Edit custom fields', global=>1 },
+
     { rightname=>'Configuration', global=>1 }, #most of the rest of the configuraiton is not agent-virtualized
 
     { rightname=>'Configuration download', }, #description of how it affects
@@ -438,7 +441,6 @@ Most (but not all) right names.
 sub default_superuser_rights {
   my $class = shift;
   my %omit = map { $_=>1 } (
-    'Delete invoices',
     'Delete payment',
     'Delete credit', #?
     'Delete refund', #?
@@ -455,6 +457,7 @@ sub default_superuser_rights {
     'Echeck void',
     'Void invoices',#people are overusing this when credits are more appropriate
     'Backdate credit',
+    'View legacy typeset statments',
   );
 
   no warnings 'uninitialized';