This commit is contained in:
Maxime Dagnicourt
2008-02-26 09:35:46 +00:00
parent 2a87bcc352
commit 8a78b428b8
2 changed files with 14 additions and 8 deletions

View File

@@ -249,10 +249,12 @@ public class AddConferenceController extends AbstractWizardFormController {
String action = request.getParameter("action");
if (action == null || action.equals(""))
{
if (! conferenceManager.canCreateConference(SessionService.getInstance().getCurrentUserLogin()))
{
logger.info(this.getClass().toString() + " dans le formBackingObject et dans le if (create new !)");
if (! conferenceManager.canCreateConference(SessionService.getInstance().getCurrentUserLogin())){
throw new ModelAndViewDefiningException(new ModelAndView("denied"));
}
criteria = new HashSet<CriterionBean>();
criteriaAll = new HashSet<CriterionBean>();
List<Criterion> listCriterion = evaluationManager.getCriterions();
@@ -287,7 +289,9 @@ public class AddConferenceController extends AbstractWizardFormController {
pb.setFirstName(user.getFirstName());
pb.setLastName(user.getLastName());
pb.setLogin(user.getLogin());
listPersonBean.add(pb);
if(SessionService.getInstance().getCurrentUserLogin()== user.getLogin()){
listPersonBean.add(pb);
}
}
return conference;
@@ -349,7 +353,9 @@ public class AddConferenceController extends AbstractWizardFormController {
pb.setFirstName(user.getFirstName());
pb.setLastName(user.getLastName());
pb.setLogin(user.getLogin());
listPersonBean.add(pb);
if(SessionService.getInstance().getCurrentUserLogin()== user.getLogin()){
listPersonBean.add(pb);
}
}
List<User> listUsersForConf = userManager.getUsers(conf.getId(), RoleType.PCMEMBER);

View File

@@ -1,6 +1,5 @@
package org.yacos.web.system.session;
import java.net.MalformedURLException;
import java.net.URL;
import javax.servlet.http.HttpServletRequest;
@@ -38,8 +37,9 @@ public class YACOSUtils {
request.getServerPort(),
resource);
return url.toString();
} catch (MalformedURLException e) {
return null;
} catch (Exception e) {
return "";
}
}