MT - fix tenant admin console

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8563 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka 2008-03-19 10:02:57 +00:00
parent afc0c675bd
commit 2d306ef79f

View File

@ -76,6 +76,18 @@ public class TenantInterpreter extends BaseInterpreter
return ((username != null) && (username.equals(BaseInterpreter.DEFAULT_ADMIN)));
}
public String interpretCommand(final String line) throws IOException
{
String currentUser = AuthenticationUtil.getCurrentUserName();
try
{
return super.interpretCommand(line);
}
finally
{
AuthenticationUtil.setCurrentUser(currentUser);
}
}
/**
* Execute a single command using the BufferedReader passed in for any data needed.
*