logger.debug("OAuthGrant: delete proceed successfully. User id: {}, grant id: {}", userId, grantId);
return ResponseFactory.response(NO_CONTENT);
}
private UserVO getUser(String userId) {
HivePrincipal principal = (HivePrincipal) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
<BUG>UserVO current = principal.getUser() != null ? principal.getUser() : principal.getKey().getUser();
if (userId.equalsIgnoreCase(Constants.CURRENT_USER)) {</BUG>
return current;
}
if (StringUtils.isNumeric(userId)) {

logger.debug("OAuthGrant: delete proceed successfully. User id: {}, grant id: {}", userId, grantId);
return ResponseFactory.response(NO_CONTENT);
}
private UserVO getUser(String userId) {
HivePrincipal principal = (HivePrincipal) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
UserVO current = principal.getUser();
if (userId.equalsIgnoreCase(Constants.CURRENT_USER)) {
return current;
}
if (StringUtils.isNumeric(userId)) {
