You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 867e042
Browse filesBrowse the repository at this point in the historyBrowse files
The previous commit ran the code formatter over every MDX page. Only the
user format page's profile preview section and its screenshots change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CnAiFbA6iCLzpJ2F55jPdT
| Public lists, detail, thread, delivery | Records the reader may not read are left out before pagination, so pages, cursors and totals never count them |
26
-
| Detail of a record in a hidden scope |`404`, the same as a record that never existed |
27
-
| Detail in a scope the reader may see |`403` with `{ accessRequired: true, code: "CONTENT_ACCESS_REQUIRED" }` and nothing else |
28
-
| Container list and detail | Hidden containers are left out, children included; every container carries `access` flags |
29
-
| Writes, edits, hide, delete, reports | Checked again on the server: a reply needs **Comment**, anything else **Read**|
26
+
| Detail of a record in a hidden scope |`404`, the same as a record that never existed |
27
+
| Detail in a scope the reader may see |`403` with `{ accessRequired: true, code: "CONTENT_ACCESS_REQUIRED" }` and nothing else |
28
+
| Container list and detail | Hidden containers are left out, children included; every container carries `access` flags |
29
+
| Writes, edits, hide, delete, reports | Checked again on the server: a reply needs **Comment**, anything else **Read**|
30
30
|`GET /permissions`| Leaves out records the reader may not read; adds `canView`, `canRead`, `canComment`, `canDownloadAttachments`|
31
-
| Sitemaps | Only what a guest may read, in every language |
32
-
| Notifications and emails | Each recipient must be able to read the record when it is sent and every time the inbox loads |
31
+
| Sitemaps | Only what a guest may read, in every language |
32
+
| Notifications and emails | Each recipient must be able to read the record when it is sent and every time the inbox loads |
33
33
34
34
Staff permissions grant nothing here. A moderator reads a restricted forum on the public site only when an access rule lets one of their roles in; give your moderator role access explicitly. The same goes for a **root role**. Tick it in the **Access** dialog wherever it should get in. The AdminCP and ModCP are staff areas behind their own permissions, so moderators keep reviewing reports and approvals there. A pending approval follows its record to its new container when the record moves, so it reaches that container's moderators.
Copy file name to clipboardExpand all lines: apps/web/content/docs/content-engine/access-categories.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,12 +98,12 @@ The article editor shows **Who can see this** under the categories field. It ask
98
98
99
99
An article needs **all** of its categories' rules. Inside one category, a member with **any** of the ticked roles gets in; across categories, the rules add up:
100
100
101
-
| Category A | Category B | Who can read the article |
|**View**| See that the forum exists: its name and description in lists and breadcrumbs | - |
40
+
|**Read**| Open its topics, find them in search, Discover and profiles | View|
41
+
|**Comment**| Reply to its topics | Read|
42
+
|**Download attachments**| Download protected files attached to what the reader can read | Read|
43
43
44
44
Each rule lets in one of three audiences: everyone (**Guests** too), **Signed-in members** only, or only members holding at least one of the ticked **Roles**, as a primary or secondary role. Root roles such as Administrator get no special pass. They are rows like any other, so untick them to keep them out. Access rules only add restrictions. Replying still needs a signed-in member and the forum's [publishing rules](/docs/content-engine/container-policies), whatever **Comment** says.
`access: true` starts every action open to everyone, so nothing changes until an administrator restricts a forum. To start stricter, pass defaults instead, such as `access: { defaults: { comment: { mode: "members" } } }`.
90
90
91
91
<Callouttype="warn">
92
-
Turn access on only when every custom route of the plugin that reads topics or
93
-
comments goes through the Content Engine's public services or
94
-
`createContentAccess(c)`. A route that queries the table directly ignores the
95
-
rules. The Forum plugin's stats and topic routes already do this.
92
+
Turn access on only when every custom route of the plugin that reads topics or comments goes through the Content Engine's public services or `createContentAccess(c)`. A route that queries the table directly ignores the rules. The Forum plugin's stats and topic routes already do this.
96
93
</Callout>
97
94
98
95
</Step>
@@ -135,11 +132,11 @@ A child can be stricter than its parent, never more open: to reach "VIP", a memb
|`path`| The id with dots as slashes | URL under `/admin/`. Lowercase segments of letters, digits and dashes; cannot start with `core` or end in `create` or `edit`. |
70
-
|`titleField`| First shared text or textarea field | Names a record in toasts, dialogs and relation pickers. `null` means the type has no title. |
71
-
|`colorField`| none | A shared field with a color, shown as a swatch next to the title. The blog's categories use it. |
72
-
|`navigation`|`true`| Set it to `false` to keep the screen but drop its sidebar link. |
73
-
|`permissionModule`| The id without the plugin part | Staff permission module name, for example `story` for `newsroom.story`. |
70
+
|`titleField`| First shared text or textarea field | Names a record in toasts, dialogs and relation pickers. `null` means the type has no title. |
71
+
|`colorField`| none | A shared field with a color, shown as a swatch next to the title. The blog's categories use it. |
72
+
|`navigation`|`true`| Set it to `false` to keep the screen but drop its sidebar link. |
73
+
|`permissionModule`| The id without the plugin part | Staff permission module name, for example `story` for `newsroom.story`. |
0 commit comments