Commit 140152ff authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction classe erronée.

parent ef057002
......@@ -4,10 +4,9 @@ namespace UnicaenAuth\Provider\Identity;
use BjyAuthorize\Provider\Identity\AuthenticationIdentityProvider;
use BjyAuthorize\Provider\Role\ProviderInterface;
use UnicaenApp\Entity\Ldap\People;
use UnicaenAuth\Entity\Db\Role;
use UnicaenAuth\Entity\Db\AbstractRole;
use UnicaenAuth\Service\Traits\RoleServiceAwareTrait;
use Zend\Ldap\Ldap;
use Zend\ServiceManager\ServiceLocatorAwareTrait;
use ZfcUser\Entity\UserInterface;
use Traversable;
......@@ -91,12 +90,12 @@ class Db extends AuthenticationIdentityProvider implements ChainableProvider, \B
* @param Role $role
* @param AbstractRole $role
* @param string $dn
* @return bool
protected function roleMatches(Role $role, $dn)
protected function roleMatches(AbstractRole $role, $dn)
try {
return 1 === $this->getLdap()->count($role->getLdapFilter(), $dn, Ldap::SEARCH_SCOPE_SUB);
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