On enlève le chairman et on fait confCurrent = null
This commit is contained in:
@@ -255,6 +255,10 @@ public class AddConferenceController extends AbstractWizardFormController {
|
|||||||
throw new ModelAndViewDefiningException(new ModelAndView("denied"));
|
throw new ModelAndViewDefiningException(new ModelAndView("denied"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SessionService.getInstance().resetCurrentConference();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
criteria = new HashSet<CriterionBean>();
|
criteria = new HashSet<CriterionBean>();
|
||||||
criteriaAll = new HashSet<CriterionBean>();
|
criteriaAll = new HashSet<CriterionBean>();
|
||||||
List<Criterion> listCriterion = evaluationManager.getCriterions();
|
List<Criterion> listCriterion = evaluationManager.getCriterions();
|
||||||
|
|||||||
@@ -295,4 +295,10 @@ public class SessionService {
|
|||||||
Authentication newAuth = new UsernamePasswordAuthenticationToken(login,password);
|
Authentication newAuth = new UsernamePasswordAuthenticationToken(login,password);
|
||||||
SecurityContextHolder.getContext().setAuthentication(newAuth);
|
SecurityContextHolder.getContext().setAuthentication(newAuth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void resetCurrentConference() {
|
||||||
|
WebUtils.setSessionAttribute(request, "currentConferenceId", null);
|
||||||
|
request.setAttribute("currentConference", null);
|
||||||
|
refreshAuthentication();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user