diff --git a/src/main/java/com/gymtracker/service/ApplicationService.java b/src/main/java/com/gymtracker/service/ApplicationService.java index c7e52a8eb7b0e9180adefdb4485bcdd98f24ace5..6a5224f5ce7c43a350ba60a28ae645979151d2a3 100644 --- a/src/main/java/com/gymtracker/service/ApplicationService.java +++ b/src/main/java/com/gymtracker/service/ApplicationService.java @@ -59,11 +59,6 @@ public class ApplicationService { .uniqueResult(); } - private Boolean isAuthorized(){ - Boolean authorized = (Boolean) wsContext.getMessageContext().get("authorized"); - return authorized; - } - @WebMethod public String apply( @WebParam(name = "username") String username, @@ -74,9 +69,6 @@ public class ApplicationService { @WebParam(name = "application_description") String application_description ) { try { - // if (!isAuthorized()) { - // return "Not authorized"; - // } Application application = new Application(username, gym_id, email, 0, trainer_name); if (trainer_description != null){