Fixed bug: Replaced $FS::CurrentUser->CurrentUser with $FS::CurrentUser::CurrentUser
authorDoran L. Barton <fozz@iodynamics.com>
Wed, 25 Mar 2015 20:48:06 +0000 (14:48 -0600)
committerDoran L. Barton <fozz@iodynamics.com>
Wed, 25 Mar 2015 20:48:06 +0000 (14:48 -0600)
FS/FS/cust_main.pm

index 74433d7..a9d7ac7 100644 (file)
@@ -1856,7 +1856,7 @@ sub check {
   return "You are not permitted to create complimentary accounts."
     if ! $self->custnum
     && $self->complimentary eq 'Y'
-    && ! $FS::CurrentUser->CurrentUser->access_right('Complimentary customer');
+    && ! $FS::CurrentUser::CurrentUser->access_right('Complimentary customer');
 
   if ( $self->paydate eq '' || $self->paydate eq '-' ) {
     return "Expiration date required"