diff --git a/docs/content/modeling/abac-conditions.mdx b/docs/content/modeling/abac-conditions.mdx index e74c8a03c..f4978932c 100644 --- a/docs/content/modeling/abac-conditions.mdx +++ b/docs/content/modeling/abac-conditions.mdx @@ -101,6 +101,7 @@ Now we transform the DSL model into JSON syntax and write the model. } } }} + skipSetup={true} allowedLanguages={[ SupportedLanguage.JS_SDK, SupportedLanguage.GO_SDK, @@ -135,9 +136,6 @@ For example, we can give `user:anne` viewer access to `document:1` for 10 minute allowedLanguages={[ SupportedLanguage.JS_SDK, SupportedLanguage.GO_SDK, - SupportedLanguage.DOTNET_SDK, - SupportedLanguage.PYTHON_SDK, - SupportedLanguage.CLI, SupportedLanguage.CURL, ]} /> @@ -154,9 +152,6 @@ Now that we have written a [Conditional Relationship Tuple](../concepts#what-is- allowedLanguages={[ SupportedLanguage.JS_SDK, SupportedLanguage.GO_SDK, - SupportedLanguage.DOTNET_SDK, - SupportedLanguage.PYTHON_SDK, - SupportedLanguage.CLI, SupportedLanguage.CURL, ]} /> @@ -172,9 +167,6 @@ but if the current time is outside the grant window then you get a deny decision allowedLanguages={[ SupportedLanguage.JS_SDK, SupportedLanguage.GO_SDK, - SupportedLanguage.DOTNET_SDK, - SupportedLanguage.PYTHON_SDK, - SupportedLanguage.CLI, SupportedLanguage.CURL, ]} /> @@ -186,6 +178,12 @@ Similarly, we can use the [ListObjects API](https://openfga.dev/api/service#/Rel relation="viewer" user="user:anne" expectedResults={['document:1']} + skipSetup={true} + allowedLanguages={[ + SupportedLanguage.JS_SDK, + SupportedLanguage.GO_SDK, + SupportedLanguage.CURL, + ]} /> but if the current time is outside the grant window then we don't get the object in the response. For example, @@ -195,6 +193,12 @@ but if the current time is outside the grant window then we don't get the object relation="viewer" user="user:anne" expectedResults={['document:1']} + skipSetup={true} + allowedLanguages={[ + SupportedLanguage.JS_SDK, + SupportedLanguage.GO_SDK, + SupportedLanguage.CURL, + ]} /> ## Examples @@ -223,4 +227,10 @@ Note that some of the types support generics, these types are indicated with ` `{"user":"${user}","relation":"${relation}","object":"${object}"}`) + .map((tuple) => `${JSON.stringify(tuple)}`) .join(',') : ''; const deleteTuples = opts.deleteRelationshipTuples ? opts.deleteRelationshipTuples - .map(({ user, relation, object }) => `{"user":"${user}","relation":"${relation}","object":"${object}"}`) + .map((tuple) => `${JSON.stringify(tuple)}`) .join(',') : ''; const writes = `"writes": { "tuple_keys" : [${writeTuples}] }`;