Skip to content

Commit

Permalink
Add Modified admin's BackEnd file
Browse files Browse the repository at this point in the history
approvePicture 메서드에 isSessionUserAdmin 주석처리
  • Loading branch information
Romangduck committed Sep 21, 2023
1 parent 00fbe53 commit 2a9a0e0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class AdminController {

@PostMapping("/approve/{pictureId}")
public String approvePicture(@PathVariable Long pictureId, HttpSession session) {
//isSessionUserAdmin(session);
// isSessionUserAdmin(session);
adminService.approvePicture(pictureId);
return "redirect:/admin/list";
}
Expand All @@ -38,7 +38,7 @@ public String approvePicture(@PathVariable Long pictureId, HttpSession session)
*/
@GetMapping("/list")
public String list(Model model, HttpSession session) {
//isSessionUserAdmin(session);
// isSessionUserAdmin(session);
model.addAttribute("pictures", adminService.findAll());
return "admin/list";
}
Expand All @@ -53,7 +53,7 @@ public String list(Model model, HttpSession session) {
*/
@GetMapping("/detail/{pictureId}")
public String detail(@PathVariable Long pictureId, Model model, HttpSession session) {
//isSessionUserAdmin(session);
// isSessionUserAdmin(session);
model.addAttribute(
"picture",
adminService.getBeforeApproveStatusPictureDetailById(pictureId)
Expand Down

0 comments on commit 2a9a0e0

Please sign in to comment.