Liquid helpers

authorize

Description

Protect a page by redirecting the current site visitor to another page if she/he has not been authenticated through the default authentication process.

Syntax

{% authorize "<user account content type slug>", "<page handle to redirect to>" %}

Example

{% authorize "accounts", "sign_in" %}

<p>This page can only be viewed by authenticated users</p>