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