INNER CODE UNIT · Java
disassociateDogFromMe
righettod/poc-graphql · src/main/java/eu/righettod/graphqlpoc/resolvers/Mutation.java:41
public Dog disassociateDogFromMe(String accessToken, int veterinaryId, int dogId) throws Exception {
//[VULN]: There an access control issue here because the verification of the access token do not verify that the token belong to the veterinary passed in "veterinaryId"
accessTokenManager.verifyToken(accessToken);
return this.businessDataRepository.disassociatedDogFromVeterinary(veterinaryId, dogId);
}
}