ModelConfig modelConfig = neighborConfig.getContextModelConfig();
if (modelConfig.isLogin()) {
if (!appSession.isMemberLoggedIn()) {
allowed = false;
} else {
Member loggedInMember = appSession.getLoggedInMember();
if (!loggedInMember.getRole().equals("admin")
&& !loggedInMember.getRole().equals("manager")) {
if (!neighborConfig.isUpdate()) {
allowed = false;
}
}
}