Browse Source

new front update 2

master
gsd 2 years ago
parent
commit
18da47b91a
  1. 6
      src/main/java/app/controllers/admin/BanController.java
  2. 6
      src/main/java/app/controllers/admin/KickController.java
  3. 6
      src/main/java/app/controllers/admin/MuteContoller.java

6
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")

6
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);
}
}

6
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);
}
}

Loading…
Cancel
Save