LDAP support: require the prefix 'hydra_' to match documentation

This commit is contained in:
Graham Christensen 2022-01-21 10:48:04 -05:00
parent ed1b532b74
commit b8f72d7ff2

View file

@ -59,7 +59,7 @@ sub doLDAPLogin {
my $user = $c->find_user({ username => $username });
my $LDAPUser = $c->find_user({ username => $username }, 'ldap');
my @LDAPRoles = grep { (substr $_, 0, 5) eq "hydra" } $LDAPUser->roles;
my @LDAPRoles = grep { (substr $_, 0, 6) eq "hydra_" } $LDAPUser->roles;
if (!$user) {
$c->model('DB::Users')->create(