Add Page Restriction
This macro sets page-level restrictions on the current page by a user, group name, or flag macro values.
Storage Format
<ac:macro ac:name="add-page-restriction">
<ac:parameter ac:name="parameter">value</ac:parameter>
</ac:macro>
Wiki Markup
{add-page-restriction:parameter=value}
Parameter | Name | Description | Type | Default | Required |
---|---|---|---|---|---|
edit | Edit | Comma-separated list of users or groups that can edit the page | string | ||
view | View | Comma-separated list of users or groups that can view the page | string | ||
flag | Flag | A list of flags, one of which must be defined for the content to be displayed | string | ||
notflag | Not Flag | A list of flags that must not be defined for the content to be displayed | string |
Example
Restrict a page so that only users in the group Staff can view or edit that page.
<ac:macro ac:name="add-page-restriction">
<ac:parameter ac:name="edit">staff</ac:parameter>
<ac:parameter ac:name="view">staff</ac:parameter>
</ac:macro>
{add-page-restriction:edit=staff|view=staff}
When added to a page, a red padlock will display next to the page title to show restrictions set on that page.