Propagate user access path from ssh scope in request scope

Bug: issue 1902
Change-Id: I98ee76241475322f3bfdeacf024395bcc6606f11
This commit is contained in:
David Ostrovsky
2013-06-08 22:23:23 +02:00
committed by Shawn Pearce
parent 65f1128819
commit c2438693f4

View File

@@ -82,7 +82,9 @@ class SshScope {
public CurrentUser getCurrentUser() {
final CurrentUser user = session.getCurrentUser();
if (user instanceof IdentifiedUser) {
return userFactory.create(((IdentifiedUser) user).getAccountId());
IdentifiedUser identifiedUser = userFactory.create(((IdentifiedUser) user).getAccountId());
identifiedUser.setAccessPath(user.getAccessPath());
return identifiedUser;
}
return user;
}