Beispiel #1
0
 private boolean vldOpt(WebErrors errors, CmsSite site, CmsUser user, Integer[] ids) {
   for (Integer id : ids) {
     if (errors.ifNull(id, "id")) {
       return true;
     }
     CmsJobApply jobapply = jobApplyMng.findById(id);
     // 数据不存在
     if (errors.ifNotExist(jobapply, CmsJobApply.class, id)) {
       return true;
     }
     // 非本用户数据
     if (!jobapply.getUser().getId().equals(user.getId())) {
       errors.noPermission(Content.class, id);
       return true;
     }
   }
   return false;
 }