projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 79636 Add conf flag invoice_sections_multilocation
[freeside.git]
/
FS
/
FS
/
Password_Mixin.pm
diff --git
a/FS/FS/Password_Mixin.pm
b/FS/FS/Password_Mixin.pm
index
122e3fd
..
b29cf57
100644
(file)
--- 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
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
if ($cust_main) {
my @words;
# words from cust_main