mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125832 rmunteanu: Merged 5.0.N (5.0.4) to 5.1.N (5.1.2) 125670 abalmus: MNT-16188 : [Kerberos] Users Search doesn't work MNT-15038 : Unexpected behavior when disabling Active Directory user (New feature to sync userAccountControl) - Fixed NPE in AuthenticationServiceImpl.getAuthenticationEnabled (I guess sometimes the PersonService bean is not injected) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125865 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -344,7 +344,7 @@ public class AuthenticationServiceImpl extends AbstractAuthenticationService imp
|
||||
*/
|
||||
public boolean getAuthenticationEnabled(String userName) throws AuthenticationException
|
||||
{
|
||||
if (personService.personExists(userName))
|
||||
if (personService != null && personService.personExists(userName))
|
||||
{
|
||||
return personService.isEnabled(userName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user