Propagate user access path from ssh scope in request scope
Bug: issue 1902 Change-Id: I98ee76241475322f3bfdeacf024395bcc6606f11
This commit is contained in:
committed by
Shawn Pearce
parent
65f1128819
commit
c2438693f4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user