Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item14418: when checking if user is a local group, use SUPER::isGroup…
… and not SUPER::userExists
  • Loading branch information
cdot committed Jun 13, 2017
1 parent 18776fd commit c87f509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Users/LdapUserMapping.pm
Expand Up @@ -253,7 +253,7 @@ sub userExists {
if ($this->{ldap}{nativeGroupsBackoff} && ! $this->{session}->inContext("_user_exists")) {
# prevent deep recursion
$this->{session}->enterContext("_user_exists");
$result = $this->SUPER::userExists($cUID);
$result = $this->isGroup($loginName);
$this->{session}->leaveContext("_user_exists");
}

Expand Down Expand Up @@ -458,7 +458,7 @@ sub isGroup {

# backoff if it does not know
if (!defined($isGroup) && $this->{ldap}{nativeGroupsBackoff}) {
$isGroup = ($wikiName =~ /Group$/);
$isGroup = $this->SUPER::isGroup($user);
}

return $isGroup;
Expand Down

0 comments on commit c87f509

Please sign in to comment.