When you begin fake self-editing, you're Admin account is logged out.
This commit is contained in:
parent
83c1043c9f
commit
6765cecc54
1 changed files with 4 additions and 1 deletions
|
@ -39,8 +39,11 @@ public class FakeSelfEditController extends VitroHttpServlet {
|
|||
// Logged in as site admin: Form to use netid
|
||||
VitroRequestPrep.forceToSelfEditing(request);
|
||||
String id = request.getParameter("netid");
|
||||
FakeSelfEditingIdentifierFactory.clearFakeIdInSession(session);
|
||||
FakeSelfEditingIdentifierFactory.putFakeIdInSession(id, session);
|
||||
|
||||
// Remove the login bean - so we are ONLY self-editing
|
||||
session.removeAttribute("loginHandler");
|
||||
|
||||
response.sendRedirect(request.getContextPath()
|
||||
+ Controllers.ENTITY + "?netid=" + id);
|
||||
} else if (request.getParameter("stopfaking") != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue