Commit 9ce3d94dc50e2b89a461511f4cde9c04b521c315
1 parent
9b079fbd
Exists in
master
and in
1 other branch
bugfixing...
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
src/Model/Table/LdapConnectionsTable.php
... | ... | @@ -366,7 +366,9 @@ class LdapConnectionsTable extends AppTable |
366 | 366 | ->find() |
367 | 367 | ->where(['id =' => 1]) |
368 | 368 | ->first(); |
369 | - | |
369 | + // Activation forcée de l'option ldap_cached si LDAP_CACHE_ALWAYS_ON | |
370 | + // (EP) Ca résoud un bug dû au fait que des infos sont cherchées dans la table users alors que le user n'y est pas... | |
371 | + if (LDAP_CACHE_ALWAYS_ON) $this->CONF->ldap_cached = true; | |
370 | 372 | $config = $this->CONF; |
371 | 373 | |
372 | 374 | $this->usersTable = TableRegistry::getTableLocator()->get('Users'); |
... | ... | @@ -747,8 +749,8 @@ class LdapConnectionsTable extends AppTable |
747 | 749 | |
748 | 750 | // Si cache pas activé => return |
749 | 751 | //debug("C1"); |
750 | - //if (! $this->CONF->ldap_cached) return; | |
751 | - if (!LDAP_CACHE_ALWAYS_ON && !$this->CONF->ldap_cached) return; | |
752 | + //if (!LDAP_CACHE_ALWAYS_ON && !$this->CONF->ldap_cached) return; | |
753 | + if (! $this->CONF->ldap_cached) return; | |
752 | 754 | |
753 | 755 | /* |
754 | 756 | * On ne met à jour le cache des users QUE si : | ... | ... |