mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V1.3 to HEAD(3161:3179)
svn merge svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3161 svn://www.alfresco.org:3691/alfresco/BRANCHES/V1.3@3179 . git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3406 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,7 @@ import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||
public class ExceptionTranslatorMethodInterceptor implements MethodInterceptor
|
||||
{
|
||||
private static final String MSG_ACCESS_DENIED = "permissions.err_access_denied";
|
||||
private static final String MSG_READ_ONLY = "permissions.err_read_only";
|
||||
|
||||
public ExceptionTranslatorMethodInterceptor()
|
||||
{
|
||||
@@ -46,7 +47,7 @@ public class ExceptionTranslatorMethodInterceptor implements MethodInterceptor
|
||||
catch (InvalidDataAccessApiUsageException e)
|
||||
{
|
||||
// this usually occurs when the server is in read-only mode
|
||||
throw new AccessDeniedException(MSG_ACCESS_DENIED, e);
|
||||
throw new AccessDeniedException(MSG_READ_ONLY, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user