mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Fix for CLOUD-2151 - Changing the theme for the alfresco.com network on production does not take effect for all users
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@57263 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -545,13 +545,19 @@ public class ADMRemoteStore extends BaseRemoteStore
|
||||
*/
|
||||
@Override
|
||||
protected void updateDocument(final WebScriptResponse res, String store, final String path, final InputStream content)
|
||||
{
|
||||
final String runAsUser = getPathRunAsUser(path);
|
||||
AuthenticationUtil.runAs(new RunAsWork<Void>()
|
||||
{
|
||||
@SuppressWarnings("synthetic-access")
|
||||
public Void doWork() throws Exception
|
||||
{
|
||||
final String encpath = encodePath(path);
|
||||
final FileInfo fileInfo = resolveFilePath(encpath);
|
||||
if (fileInfo == null || fileInfo.isFolder())
|
||||
{
|
||||
res.setStatus(Status.STATUS_NOT_FOUND);
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
try
|
||||
@@ -566,6 +572,9 @@ public class ADMRemoteStore extends BaseRemoteStore
|
||||
res.setStatus(Status.STATUS_UNAUTHORIZED);
|
||||
throw ae;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}, runAsUser);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user