From 3695c8a8c48d4246654db7e94d3b038d7ab8e542 Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Fri, 26 Apr 2024 12:57:46 -0700 Subject: [PATCH] Update doc example to work with newer OpenFGA versions --- docs/modules/ROOT/examples/ThingResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/examples/ThingResource.java b/docs/modules/ROOT/examples/ThingResource.java index 7f3b9b8..e93d5cd 100644 --- a/docs/modules/ROOT/examples/ThingResource.java +++ b/docs/modules/ROOT/examples/ThingResource.java @@ -30,7 +30,7 @@ public Uni createThing(@QueryParam("name") String name) { return thingRepository.createThing(name) .flatMap((thing) -> { // <4> - var relationship = new Relationship("thing", thing.getId(), "owner", principal.getName()); + var relationship = new Relationship("thing", thing.getId(), "owner", "user:" + principal.getName()); // <5> return relationshipManager.add(List.of(relationship)) .map((unused) -> thing);