[FIXED JENKINS-13600] API token authentication was broken in 1.461.

This commit is contained in:
Kohsuke Kawaguchi committed 2012-04-25 15:16:57 -07:00
1 parent 18689607a8
commit fdaee7eba3
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ public abstract class ACL {
*/
public static SecurityContext impersonate(Authentication auth) {
SecurityContext old = SecurityContextHolder.getContext();
SecurityContextHolder.setContext(new NotSerilizableSecurityContext(ACL.SYSTEM));
SecurityContextHolder.setContext(new NotSerilizableSecurityContext(auth));
return old;
}
}