Commit a49b3801 authored by Thomas Sibley's avatar Thomas Sibley
Browse files

Ensure the users cache is defined before we use it

parent b76bbf22
......@@ -485,6 +485,8 @@ sub _cache_user {
my %args = (@_);
my $user = $args{user} || $self->_build_user_object( ldap_entry => $args{ldap_entry} );
$self->_users({}) if not defined $self->_users;
my $group_map = $RT::LDAPGroupMapping || {};
my $member_attr_val = $group_map->{Member_Attr_Value} || 'dn';
my $membership_key = lc $member_attr_val eq 'dn'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment