mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11722: Error fails when try to log in as disable tenant
* Added DisabledTenantException error * Changed ExceptionTranslatiorMethodInterceptor to translated the above exception into an AuthenticationException git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32353 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -671,7 +671,7 @@ public class MultiTServiceImpl implements TenantService
|
||||
// note: System user can access disabled tenants
|
||||
if (!AuthenticationUtil.isRunAsUserTheSystemUser() && !(getTenant(tenantDomain).isEnabled()))
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Tenant is not enabled: " + tenantDomain);
|
||||
throw new TenantDisabledException(tenantDomain);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user