diff --git a/src/main/java/app/controllers/admin/BanController.java b/src/main/java/app/controllers/admin/BanController.java index ec4fe46..6ee68ff 100644 --- a/src/main/java/app/controllers/admin/BanController.java +++ b/src/main/java/app/controllers/admin/BanController.java @@ -54,6 +54,12 @@ public class BanController { return result > 0 ? new ResponseEntity(result, HttpStatus.CREATED) : new ResponseEntity(result * -1, HttpStatus.ACCEPTED); } + @RequestMapping(method = RequestMethod.OPTIONS) + @CheckPermitionFlag(flag = "d") + public ResponseEntity checkBanPlayer(HttpServletRequest request) { + return new ResponseEntity(HttpStatus.OK); + } + @DeleteMapping @CheckWebAccess @CheckPermitionFlag(flag = "e") diff --git a/src/main/java/app/controllers/admin/KickController.java b/src/main/java/app/controllers/admin/KickController.java index ef7a131..c206bd4 100644 --- a/src/main/java/app/controllers/admin/KickController.java +++ b/src/main/java/app/controllers/admin/KickController.java @@ -51,4 +51,10 @@ public class KickController { if (result) return new ResponseEntity(HttpStatus.OK); else return new ResponseEntity(HttpStatus.NOT_FOUND); } + + @RequestMapping(method = RequestMethod.OPTIONS) + @CheckPermitionFlag(flag = "c") + public ResponseEntity checkKickPlayer(HttpServletRequest request) { + return new ResponseEntity(HttpStatus.OK); + } } diff --git a/src/main/java/app/controllers/admin/MuteContoller.java b/src/main/java/app/controllers/admin/MuteContoller.java index 9810fe7..12e2941 100644 --- a/src/main/java/app/controllers/admin/MuteContoller.java +++ b/src/main/java/app/controllers/admin/MuteContoller.java @@ -69,5 +69,9 @@ public class MuteContoller { else return new ResponseEntity(HttpStatus.NOT_FOUND); } - + @RequestMapping(method = RequestMethod.OPTIONS) + @CheckPermitionFlag(flag = "c") + public ResponseEntity checkMutePlayer(HttpServletRequest request) { + return new ResponseEntity(HttpStatus.OK); + } }