master
kira 6 years ago
parent 337ce2f305
commit a7b3e33ada

@ -104,13 +104,13 @@ public class ManagerUserInterceptor extends HandlerInterceptorAdapter implements
}
}
JSONObject func = permissionPartnerManager.getPartnerFuncById(funcId);
if(func!=null && StringUtils.isNotEmpty(func.getString("module_id"))){
JSONArray arr = loginUser.getJSONArray("available_module_ids");
if (arr == null || !arr.contains(func.getString("module_id"))) {
throw new ForbiddenException("error.permission.nopermission");
}
}
// JSONObject func = permissionPartnerManager.getPartnerFuncById(funcId);
// if(func!=null && StringUtils.isNotEmpty(func.getString("module_id"))){
// JSONArray arr = loginUser.getJSONArray("available_module_ids");
// if (arr == null || !arr.contains(func.getString("module_id"))) {
// throw new ForbiddenException("error.permission.nopermission");
// }
// }
request.setAttribute(CommonConsts.PARTNER_STATUS, loginUser);
}

Loading…
Cancel
Save