projects
/
catagits/Catalyst-Authentication-Store-LDAP.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix lookup_roles to return an empty list instead of undef
[catagits/Catalyst-Authentication-Store-LDAP.git]
/
lib
/
Catalyst
/
Authentication
/
Store
/
LDAP
/
Backend.pm
diff --git
a/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
b/lib/Catalyst/Authentication/Store/LDAP/Backend.pm
index
4a2a797
..
bd7bae0
100644
(file)
--- a/
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
+++ b/
lib/Catalyst/Authentication/Store/LDAP/Backend.pm
@@
-392,7
+392,7
@@
objects that match it's criteria.
sub lookup_roles {
my ( $self, $userobj, $ldap ) = @_;
if ( $self->use_roles == 0 || $self->use_roles =~ /^false$/i ) {
- return undef;
+ return ();
}
$ldap ||= $self->role_search_as_user
? $userobj->ldap_connection : $self->ldap_bind;