in src/main/java/com/googlesource/gerrit/plugins/webhooks/rest/GetRemote.java [38:44]
public Response<RemoteInfo> apply(RemoteResource rsrc)
throws NoSuchProjectException, ResourceNotFoundException, AuthException {
if (!permissions.canRead(rsrc.getProject())) {
throw new AuthException("not allowed to read webhooks");
}
return Response.ok(fromRemoteConfig(rsrc.getRemoteConfig()));
}