mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
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:
parent
afc0c675bd
commit
2d306ef79f
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user