|
category.restricted |
|
category.restricted is a boolean variable that is true if the reader does not have permission to access the current category.
A category can be restricted so that it can be accessed only by the blog administrator and those readers who have permission to view that category. Categories are restricted by checking the Restrict views checkbox in the Category Settings page of the Article and Photo Manager. Permission is granted to individual readers or groups of readers. These permissions are granted in the Category Security page of the Article and Photo Manager.
In the default base template, category.restricted is used to determine whether to show a message explaining that access to the category is restricted to those who have permission.
Example
In the example below, the text The category you are viewing has restricted privileges is displayed if the reader does not have permission to view the current category:
{{if category.restricted}}
The category you are viewing has restricted privileges.
{{/if}}