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:
Matt Ward
2011-11-28 15:53:03 +00:00
parent a028484138
commit c6f4ac8b57
3 changed files with 9 additions and 1 deletions

View File

@@ -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);
}
}