This commit is contained in:
@@ -250,8 +250,10 @@ public class AddConferenceController extends AbstractWizardFormController {
|
|||||||
String action = request.getParameter("action");
|
String action = request.getParameter("action");
|
||||||
if (action == null || action.equals(""))
|
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"));
|
throw new ModelAndViewDefiningException(new ModelAndView("denied"));
|
||||||
|
}
|
||||||
|
|
||||||
criteria = new HashSet<CriterionBean>();
|
criteria = new HashSet<CriterionBean>();
|
||||||
criteriaAll = new HashSet<CriterionBean>();
|
criteriaAll = new HashSet<CriterionBean>();
|
||||||
@@ -287,7 +289,9 @@ public class AddConferenceController extends AbstractWizardFormController {
|
|||||||
pb.setFirstName(user.getFirstName());
|
pb.setFirstName(user.getFirstName());
|
||||||
pb.setLastName(user.getLastName());
|
pb.setLastName(user.getLastName());
|
||||||
pb.setLogin(user.getLogin());
|
pb.setLogin(user.getLogin());
|
||||||
listPersonBean.add(pb);
|
if(SessionService.getInstance().getCurrentUserLogin()== user.getLogin()){
|
||||||
|
listPersonBean.add(pb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return conference;
|
return conference;
|
||||||
@@ -349,7 +353,9 @@ public class AddConferenceController extends AbstractWizardFormController {
|
|||||||
pb.setFirstName(user.getFirstName());
|
pb.setFirstName(user.getFirstName());
|
||||||
pb.setLastName(user.getLastName());
|
pb.setLastName(user.getLastName());
|
||||||
pb.setLogin(user.getLogin());
|
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);
|
List<User> listUsersForConf = userManager.getUsers(conf.getId(), RoleType.PCMEMBER);
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package org.yacos.web.system.session;
|
package org.yacos.web.system.session;
|
||||||
|
|
||||||
import java.net.MalformedURLException;
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
@@ -38,8 +37,9 @@ public class YACOSUtils {
|
|||||||
request.getServerPort(),
|
request.getServerPort(),
|
||||||
resource);
|
resource);
|
||||||
return url.toString();
|
return url.toString();
|
||||||
} catch (MalformedURLException e) {
|
} catch (Exception e) {
|
||||||
return null;
|
return "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user