diff --git a/src/main/java/app/controllers/user/DetailController.java b/src/main/java/app/controllers/user/DetailController.java index 1c44e74..eb135a6 100644 --- a/src/main/java/app/controllers/user/DetailController.java +++ b/src/main/java/app/controllers/user/DetailController.java @@ -1,5 +1,6 @@ package app.controllers.user; +import app.annotations.enums.AuthMethod; import app.annotations.interfaces.CheckPermitionFlag; import app.annotations.interfaces.CheckWebAccess; import app.entities.other.SteamID; @@ -24,16 +25,14 @@ public class DetailController { } @GetMapping - @CheckWebAccess - @CheckPermitionFlag(flag = "z") + @CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) public ResponseEntity GetUser(HttpServletRequest request, @RequestParam String steam64) { return new ResponseEntity(profileService.GetProfile(steam64), HttpStatus.OK); } @GetMapping("/steam") - @CheckWebAccess - @CheckPermitionFlag(flag = "z") + @CheckWebAccess(auth_method = AuthMethod.SECRET_KEY) public ResponseEntity GetSteam(HttpServletRequest request, @RequestParam String any) { return new ResponseEntity<>(profileService.GetSteamIDFromAnyData(any), HttpStatus.OK);