mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.1 to HEAD
13256: Fix ETHREEOH-1221 Hard-coded use of "admin" username ___________________________________________________________________ Modified: svn:mergeinfo Merged /alfresco/BRANCHES/V3.1:r13256 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -49,7 +49,6 @@ import org.apache.commons.logging.LogFactory;
|
||||
public class AVMDeploymentAttemptCleaner
|
||||
{
|
||||
// defaults in case these properties are not configured in Spring
|
||||
protected String adminUserName = "admin";
|
||||
protected long maxAge = 180L;
|
||||
|
||||
protected NodeService nodeService;
|
||||
@@ -63,11 +62,6 @@ public class AVMDeploymentAttemptCleaner
|
||||
{
|
||||
}
|
||||
|
||||
public void setAdminUserName(String adminUserName)
|
||||
{
|
||||
this.adminUserName = adminUserName;
|
||||
}
|
||||
|
||||
public void setMaxAge(long maxAge)
|
||||
{
|
||||
this.maxAge = new Long(maxAge);
|
||||
@@ -117,7 +111,7 @@ public class AVMDeploymentAttemptCleaner
|
||||
};
|
||||
|
||||
// perform the work as the system user
|
||||
AuthenticationUtil.runAs(authorisedWork, this.adminUserName);
|
||||
AuthenticationUtil.runAs(authorisedWork, AuthenticationUtil.getAdminUserName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user