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:
		| @ -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. | 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`. | To use an invitation, use the URL `https://authentik.tld/if/flow/your-enrollment-flow/?itoken=invitation-token`. | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 sdimovv
					sdimovv