[freeside-commits] branch FREESIDE_3_BRANCH updated. cecb79407cc0e1ee7342c1f77ea17af7ddb8d5f4

Ivan Kohler ivan at freeside.biz
Fri Dec 15 16:44:21 PST 2017


The branch, FREESIDE_3_BRANCH has been updated
       via  cecb79407cc0e1ee7342c1f77ea17af7ddb8d5f4 (commit)
      from  eeca2ef2e54dbfdc88c83333176ecebbcfe87a42 (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 cecb79407cc0e1ee7342c1f77ea17af7ddb8d5f4
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Dec 15 16:44:18 2017 -0800

    fix changing employee password, RT#78939

diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm
index 963fa542b..e2e164bf3 100644
--- a/FS/FS/Password_Mixin.pm
+++ b/FS/FS/Password_Mixin.pm
@@ -47,7 +47,9 @@ sub is_password_allowed {
   my $self = shift;
   my $password = shift;
 
-  my $cust_main = $self->cust_main;
+  my $cust_main = $self->table eq 'access_user'
+                    ? $self->user_cust_main
+                    : $self->cust_main;
 
   # workaround for non-inserted services
   if ( !$cust_main and $self->get('pkgnum') ) {

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

Summary of changes:
 FS/FS/Password_Mixin.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list