GeoHazardWatch supports page-level access control using ACLs (Access Control Lists) to restrict who can view, edit, or manage individual pages.
ACLs allow you to:
ACLs are defined in the page frontmatter using the acl property:
---
title: My Protected Page
acl:
view: [admin, editors]
edit: [admin]
delete: [admin]
---
| Permission | Description |
view |
Who can read the page content |
edit |
Who can modify the page |
delete |
Who can delete the page |
comment |
Who can add comments (if enabled) |
upload |
Who can upload attachments |
Principals are the users or groups that can be granted permissions:
admin - Full administrative accessauthenticated - Any logged-in useranonymous - Anyone (including guests)all - Everyone (same as anonymous)Custom roles can be defined in the User Roles and Permissions configuration.
Only administrators can view or edit:
acl:
view: [admin]
edit: [admin]
Anyone can view, only admins can edit:
acl:
view: [all]
edit: [admin]
Multiple roles with different access:
acl:
view: [authenticated]
edit: [editors, admin]
delete: [admin]
System documentation (protected from casual editing):
system-category: documentation
acl:
view: [all]
edit: [admin]
Pages can inherit ACLs from:
The ACLManager evaluates permissions in this order:
See User Roles and Permissions for role definitions, Administrator for the admin guide, and Configuration System for site-wide configuration.