Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public static Stream<Role> getValidImpersonationRoles(Container c, User user)
.filter(role -> !role.isPrivileged() || canImpersonatePrivilegedRoles);
}

private static class RoleImpersonationContext extends AbstractImpersonationContext
public static class RoleImpersonationContext extends AbstractImpersonationContext
{
private final RoleSet _roles;
private final String _cacheKey;
Expand Down Expand Up @@ -298,5 +298,10 @@ public void addMenu(NavTree menu, Container c, User user, ActionURL currentURL)
super.addMenu(menu, c, user, currentURL);
RoleImpersonationContextFactory.addMenu(menu, "Adjust Impersonation");
}

public RoleSet getRoles()
{
return _roles;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only change that's necessary. Maybe the class has to be public as well to do the instanceof check.

}
}