if (authority < albumAuth) {
throw new NoVisitPermissionException("ID为:" + viewerId + "的用户没有访问ID为:"
+ photo.getId() + "图片的权限");
}
} else {
throw new NoResourceException("ID为:" + photoId + "的图片不存在");
}
List<Photo> photos = albumService.listPhotoFilesOfAlbum(photo.getAlbumId(), authority);
ModelAndView mav = new ModelAndView(ViewPaths.ALBUM_VIEWPHOTO);
mav.addObject("photo", photo);