[freeside-commits] branch FREESIDE_4_BRANCH updated. a8ced402afec4f9deb702fd4b056c4ff160b30a0
Ivan Kohler
ivan at freeside.biz
Fri Dec 15 16:44:09 PST 2017
The branch, FREESIDE_4_BRANCH has been updated
via a8ced402afec4f9deb702fd4b056c4ff160b30a0 (commit)
from c3b6cf5f7d3cbebe31431c7fea74bda7f38e44be (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 a8ced402afec4f9deb702fd4b056c4ff160b30a0
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Dec 15 16:44:06 2017 -0800
fix changing employee password, RT#78939
diff --git a/FS/FS/Password_Mixin.pm b/FS/FS/Password_Mixin.pm
index 122e3fd83..b29cf5713 100644
--- a/FS/FS/Password_Mixin.pm
+++ b/FS/FS/Password_Mixin.pm
@@ -82,7 +82,9 @@ sub is_password_allowed {
return '' unless $self->get($self->primary_key); # for validating new passwords pre-insert
#check against customer fields
- my $cust_main = $self->cust_main;
+ my $cust_main = $self->table eq 'access_user'
+ ? $self->user_cust_main
+ : $self->cust_main;
if ($cust_main) {
my @words;
# words from cust_main
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Password_Mixin.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list