website/docs: Fix small error in Invitation stage docs (#3997)

The `.get` is there to ensure the policy won't throw an error if the key is not there (which can happen if the policy is executed before an Invitation stage).

Signed-off-by: sdimovv <36302090+sdimovv@users.noreply.github.com>

Signed-off-by: sdimovv <36302090+sdimovv@users.noreply.github.com>
This commit is contained in:
sdimovv 2022-11-14 08:54:25 +00:00 committed by GitHub
parent 4095c422df
commit d2bbcc0e1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ This stage can be used to invite users. You can use this to enroll users with pr
If the option `Continue Flow without Invitation` is enabled, this stage will continue even when no invitation token is present.
To check if a user has used an invitation within a policy, you can check `request.context.invitation_in_effect`.
To check if a user has used an invitation within a policy, you can check `request.context.get("invitation_in_effect", False)`.
To use an invitation, use the URL `https://authentik.tld/if/flow/your-enrollment-flow/?itoken=invitation-token`.