MT - tenant bootstrap nows runs in 'System' ctx (rather than tenant 'admin' ctx) + minor cleanup.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8137 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-01-31 10:58:47 +00:00
parent 06541ab85a
commit fd46bb7add
8 changed files with 132 additions and 158 deletions

View File

@@ -222,7 +222,11 @@ public class AuditableAspect
String currentUserName = authenticationService.getCurrentUserName();
if (currentUserName != null)
{
return currentUserName;
if (tenantService.isEnabled() && authenticationService.isCurrentUserTheSystemUser())
{
return tenantService.getBaseNameUser(currentUserName);
}
return currentUserName;
}
return USERNAME_UNKNOWN;
}