Projet

Général

Profil

Révision be58a50c

Ajouté par Assos Assos il y a environ 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_authentication/ldap_authentication.module
212 212
      );
213 213
    }
214 214
  }
215
  return TRUE;
215
  return $result;
216 216
}
217 217

  
218 218
/**
......
335 335
  $auth_conf = ldap_authentication_get_valid_conf();
336 336
  // Hide user/password form if ldap authentication is required and deny access
337 337
  // to users without ldap authorizations is enabled
338
  if ($user->uid == 1 || $auth_conf || (current_path() == 'user/password' && $auth_conf->authenticationMode != LDAP_AUTHENTICATION_EXCLUSIVE)) {
338
  if ($user->uid == 1 || !$auth_conf || (current_path() == 'user/password' && $auth_conf->authenticationMode != LDAP_AUTHENTICATION_EXCLUSIVE)) {
339 339
    return TRUE;
340 340
   // always show at user/passwordurl. otherwise user 1 will not be able to reset password.
341 341
  }

Formats disponibles : Unified diff