IAWL ideas, group B: sizes before work, one link rule, no stand-in locale, strict switches
- Request bodies from strangers are read only up to a cap, declared length or not: mail-service confirm, CSP reports, page views, MCP (maxBytes, 413). readCappedBody moves to shared/ (the consent log keeps exporting it). - searchContent / createSearchRoute / MCP search: queryLimit (default 200 characters, 10 words) before the database; an unknown ?locale is the default locale throughout. - Rich text: autolinks and links marked internal pass safeHref too; lexicalToMarkdown drops unsafe link targets. - truncate() never returns more than its limit (summary / meta autofill after validation). - resolveRoute answers null for a locale the site does not have (xx, all, *): no default-locale page under another code (page route past the proxy, /md/xx, MCP). - A 404 page that is a draft is not shown (resolveNotFoundPage, getNotFoundPage). - readPublished() access rule (exported); Site integrations readVersions: admin. - Plugin switches, buildCsp, buildSecurityHeaders and the seed guard refuse nonsense values at start; an unknown role name is met by nobody, requireRole throws on one. - Docs, AGENT.md, iapl-collection and iapl-audit skills. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e821d52d19
commit
ecf03c8dc0
+12
-1
@@ -169,7 +169,7 @@ They fail closed: where the staff collections are not known, nobody is staff, an
|
||||
### Collection-level (return boolean | Where)
|
||||
|
||||
```ts
|
||||
import { adminOnly, adminOrEditor, adminOrSelf, adminOrSelfIn, requireRole, authenticated } from '@intecion/ipal-kit'
|
||||
import { adminOnly, adminOrEditor, adminOrSelf, adminOrSelfIn, readPublished, requireRole, authenticated } from '@intecion/ipal-kit'
|
||||
|
||||
export const Articles = {
|
||||
slug: 'articles',
|
||||
@@ -191,8 +191,19 @@ access: { read: adminOrSelf } // fine with a single auth collection
|
||||
|
||||
// any minimum threshold
|
||||
access: { update: requireRole('editor') }
|
||||
|
||||
// a collection with drafts: editors (or the role you name) read everything; visitors, plain `user` accounts and a
|
||||
// session that still owes its second factor read published documents only — by id, in lists, with ?draft=true and
|
||||
// over GraphQL. Payload's open `read: () => true` answers ?draft=true with the draft itself (1.17.1).
|
||||
access: { read: readPublished(), readVersions: readPublished() }
|
||||
access: { read: readPublished('admin') }
|
||||
```
|
||||
|
||||
A role name the plugin does not know (`requireRole('Admin')`, `readPublished('superadmin')`) throws where the rule
|
||||
is written; `hasMinimumRole` / `userMeetsRole` answer `false` for it (before 1.17.1 every staff account met it).
|
||||
`readPublished` with `?draft=true` on a page whose newest version is a draft answers a visitor `404` (Payload applies
|
||||
the rule to that version), never the draft.
|
||||
|
||||
### Field-level (return boolean)
|
||||
|
||||
```ts
|
||||
|
||||
+7
-2
@@ -1103,7 +1103,7 @@ project → **plugin gap**, not a copy.
|
||||
| ISR after save, old slug → 308, images across languages | `buildRevalidateHook`, `trackSlugHistoryHook`, `buildCrossLocaleFieldSync` | hooks.md |
|
||||
| ISR after a global is saved | plugin globals: `iapl({ revalidatePath })`; your own globals: `buildGlobalRevalidateHook({ revalidatePath })` | hooks.md |
|
||||
| Change a plugin global (access, hooks, fields) | `iapl({ globalOverrides })` | access.md |
|
||||
| Roles and access | `adminOnly`, `adminOrEditor`, `adminOrSelf`, `adminOrSelfIn(slug)` (several auth collections), `authenticated`, `requireRole`, `hasMinimumRole` (+ `…Field`); staff checks: `userMeetsRole(req, role)`, `isAdmin(req.user, req.payload)` (roles count only for accounts of a staff collection; in a client component `isAdmin(user, config)` with `useConfig()`, imported from **`@intecion/ipal-kit/client`** (the main entry does not build there with webpack), in middleware `isAdmin(user, { staffCollections: ['users'] })` — without the last argument there it is always `false`), `staffCollectionSlugs(payload)`, `access.staffCollections`; second factor in your own code: `secondFactorPassed(req)`, `requireSecondFactor(access)`; injected `users`: `access.authAccess`, first user = admin (`access.firstUserAdmin`) | access.md, security.md |
|
||||
| Roles and access | `adminOnly`, `adminOrEditor`, `adminOrSelf`, `adminOrSelfIn(slug)` (several auth collections), `authenticated`, `requireRole`, `hasMinimumRole` (+ `…Field`); a collection with drafts: `access: { read: readPublished(), readVersions: readPublished() }` (editors read drafts, everybody else published only — Payload's open `read: () => true` answers `?draft=true` with the draft; verify: `GET /api/<slug>/<draft id>?draft=true` without a session → 404); an unknown role name throws where the rule is written; staff checks: `userMeetsRole(req, role)`, `isAdmin(req.user, req.payload)` (roles count only for accounts of a staff collection; in a client component `isAdmin(user, config)` with `useConfig()`, imported from **`@intecion/ipal-kit/client`** (the main entry does not build there with webpack), in middleware `isAdmin(user, { staffCollections: ['users'] })` — without the last argument there it is always `false`), `staffCollectionSlugs(payload)`, `access.staffCollections`; second factor in your own code: `secondFactorPassed(req)`, `requireSecondFactor(access)`; injected `users`: `access.authAccess`, first user = admin (`access.firstUserAdmin`) | access.md, security.md |
|
||||
| Data from globals | `getGlobal`, `getSiteSettings`, `getSiteIntegrations` | payload-helpers.md |
|
||||
|
||||
**Links and navigation**
|
||||
@@ -1141,7 +1141,7 @@ project → **plugin gap**, not a copy.
|
||||
| Product / category JSON-LD (an entry that is not an article) | `pageJsonLd.entries` + `buildProductJsonLd` | seo.md |
|
||||
| llms.txt / llms-full / Markdown / MCP | `llmsRoute`, `llmsFullRoute`, `markdownRoute`, `mcpGET`/`mcpPOST`; `markdownAlternate: true`; `createProxy({ markdown: true })` | seo.md, content.md, mcp.md |
|
||||
| IndexNow | `iapl({ indexNow: true })` + `indexNowKeyRoute` | seo.md |
|
||||
| Search | `createSearchRoute({ …, isPathVisible })` | content.md |
|
||||
| Search | `createSearchRoute({ …, isPathVisible })`; `queryLimit` (default `SEARCH_QUERY_LIMIT` = `{ length: 200, words: 10 }`, `limitQuery(query, limit)` shows the cut — a longer query is cut before the database; `false` = whole query); an unknown `?locale` is the default locale | content.md |
|
||||
|
||||
**Media, look, speed**
|
||||
| Need | Use | Doc |
|
||||
@@ -1211,6 +1211,11 @@ add missing hosts with flags / `extra`; (3) change `mode` to `'enforce'` in both
|
||||
| Text written in one language fills the empty languages (cookie list, cookie review), never over a language's own text | `fillEmptyLocales: false` | `fillEmptyLocales: { 'cookie-settings': [...], 'cookie-review': [...] }`; `buildFillEmptyLocalesGlobalHook` / `…CollectionHook` for your own globals and collections |
|
||||
| Cookie approval: one summary + **Approve and add** (editor+), unknown cookies approved as `marketing` + "Needs description", dashboard reminder while cookies wait; nothing reaches the cookie banner before approval | `cookieScanner.approval: false` (per-entry review) | `approval.unknownCategory`, `approval.dashboard: false`; building blocks `approveCookies`, `loadCookieApproval`, `countPendingCookies`, `flagGoneEntries`, `sameCookie` |
|
||||
| Cookie review: scan + review editor+, delete admin; Open Cookie Database "Functional" → `functional` | omit `cookieScanner` | `cookieScanner.access`, `collectionOverrides`, `databaseCategories`, `integrations`, `declarations`, `labels`, `syncAccepted: false`; building blocks `runCookieScan`, `collectCookieFindings`, `applyCookieFindings` |
|
||||
| Plugin switches read strictly (1.17.1): a nonsense value (`accounts: 0`, `stats: 'false'`, `consentLog: { retentionDays: null }`, `dashboardAlerts.integrations: 'Admin'`, a 0 window in `mail.relay`, `storageNames: 'IAPL'`, …) stops the start with the option's name; `buildSecurityHeaders` / `buildCsp` likewise (`extra` values are arrays) | — (pass a real value: `true` / `false`, an object, a number in range) | security.md "Switches are read strictly"; verify: `pnpm build` starts, or the error names the option |
|
||||
| Request bodies from strangers are read only up to a cap, declared length or not (1.17.1): consent log 4 KiB, page views 4 KiB, mail-service confirm 2 KiB, CSP reports `maxBytes` 16 KiB, MCP `maxBytes` 64 KiB → `413` | — | `createMcpRoute({ maxBytes })`, `createCspReportRoute({ maxBytes })`, `readCappedBody(request, max)` |
|
||||
| Rich-text links: one rule for every stored URL — `link`, `autolink` (also marked internal) and the Markdown output (`lexicalToMarkdown`) drop `javascript:` / `data:` targets | `safeLinks={false}` (trusted content only) | `sanitizeRichTextLinks`, `safeHref` |
|
||||
| Locales: no stand-in — `resolveRoute` (page route, `/md/…`, MCP `get_page`) answers `null` for a locale the site does not have (`xx`, `all`); a 404 page that is a draft is not shown (built-in view instead) | — | `isSiteLocale(payload, locale)`; verify: `curl -i <site>/md/xx` → 404 |
|
||||
| Site integrations versions (when a project turns them on) are read by admins only (`readVersions`) | — | `globalOverrides: { 'site-integrations': { access: { readVersions } } }` |
|
||||
| Consent log on (since 1.17.0; Postgres / SQLite: a migration in the same deploy) | `consentLog: false`; one layout: `logEndpoint={false}` | `consentLog: { retentionDays, collectionOverrides }`; `buildConsentLogCollection` / `buildConsentLogEndpoint`, `CONSENT_LOG_PATH` |
|
||||
| Global Privacy Control honoured: no banner, analytics and marketing off, no Google request also in Consent Mode `advanced`; a grant made without the signal is switched off when it appears | `gpc={false}` (doctor warns) | `gpc="ask"`; `resolveConsent`, `gpcFromHeaders`, `consentBannerScript({ gpc })` |
|
||||
| "Reject" styled like "Accept all" (`equalChoice`) | `equalChoice={false}` (doctor warns) | `classNames.rejectButton` |
|
||||
|
||||
@@ -69,4 +69,9 @@ names, env, admin, AGENTS.md, skills, seeds and — with `--url` / `--deep` —
|
||||
rolled out). Report-only for more than a few weeks with clean reports → WARNING (switch to `mode: 'enforce'`).
|
||||
Then open `/pl` and `/admin` in the browser: CSP lines in the console = missing sources (flags / `extra`).
|
||||
|
||||
- **Drafts and locales over the API** (a collection with `versions: { drafts: true }`): without a session,
|
||||
`curl -s "$U/api/<slug>?draft=true&limit=100" | grep -c '"_status":"draft"'` → `0`, else ERROR: give it
|
||||
`access: { read: readPublished(), readVersions: readPublished() }` (access.md). `curl -sI "$U/md/xx"` → `404`
|
||||
(no stand-in locale); a 404 page assigned in System pages must be published.
|
||||
|
||||
Do not say "done" until the full audit (without `--quick`) has no errors.
|
||||
|
||||
@@ -46,6 +46,9 @@ Ask only when the brief leaves a business question open (e.g. "do posts have aut
|
||||
**No URL prefix in code** — the editor assigns the archive page in
|
||||
Site settings (`<slug>Archive`). The plugin handles routing, sitemap,
|
||||
generateStaticParams, hreflang.
|
||||
**With drafts** (`versions: { drafts: true }`): `access: { read: readPublished(), readVersions: readPublished() }`
|
||||
— Payload's open `read: () => true` answers `?draft=true` with the draft over REST and GraphQL. Check:
|
||||
`curl -i <site>/api/<slug>/<draft id>?draft=true` without a session → `404`; the same with an editor's token → the draft.
|
||||
3. Entry list = a block (EntriesList) with `getEntries`; the entry page uses
|
||||
`resolveRoute` (type `entry`); JSON-LD per seo.md (e.g. Article).
|
||||
4. **An auth collection for visitors** (`auth: true`: customers, members) only when the client requires it
|
||||
|
||||
+12
-2
@@ -89,6 +89,11 @@ Without `draft: true`, documents with a `_status` other than `published` (page,
|
||||
entry) give `null`. The page assigned as 404 in System pages also gives `null`
|
||||
(a real 404 instead of a soft 404).
|
||||
|
||||
**A locale the site does not have gives `null` (1.17.1).** `xx`, `all` or `*` — from a URL that went past the
|
||||
proxy (a dotted path, the Markdown route `/md/xx`) or a caller — used to resolve the default locale's page under that
|
||||
code; now it is "not found". `isSiteLocale(payload, locale)` is the same check for your own code. A site without
|
||||
localization is not affected.
|
||||
|
||||
Logic: the first segment is matched against the slugs of the archive pages from System
|
||||
Pages. A match → we know which collection it is about. `['artykuly']` → listing of
|
||||
`posts`; `['artykuly','moj-post']` → an entry in `posts`; no match → a regular
|
||||
@@ -391,7 +396,8 @@ Query: `?q=` (required), `?locale=`, `?limit=`. Response:
|
||||
"results": [{ "title": "O nas", "url": "https://x/pl/o-nas", "description": "…", "slug": "o-nas" }] }
|
||||
```
|
||||
|
||||
No `q` → 400. Published only, without `noindex` (`noindex` or `meta.noindex`) and without the page assigned as the
|
||||
No `q` → 400. An unknown `?locale=` is the default locale — in the search, the under-construction check and the
|
||||
answer alike (1.17.1). Published only, without `noindex` (`noindex` or `meta.noindex`) and without the page assigned as the
|
||||
404 page (Site settings → System pages, read through `settingsSlug`, default `site-settings`),
|
||||
10 by default (`defaultLimit`), max 50 results. Under-construction mode:
|
||||
pass `isPathVisible` from `createContentHelpers`, and hidden pages drop out of the results. Error/database
|
||||
@@ -411,12 +417,16 @@ const results = await searchContent({ payload, query, config, locale, limit, bas
|
||||
|
||||
`searchContent` options: `collection` (`'pages'`), `baseUrl`, `homeSlug`, `settingsSlug` (`'site-settings'`, for the 404 page), `locale`
|
||||
(default/invalid → `defaultLocale`), `limit` (10, clamped to 1–50),
|
||||
`queryLimit` (1.17.1; default `{ length: 200, words: 10 }` — `SEARCH_QUERY_LIMIT`): how much of the query reaches
|
||||
the database. Each word is one more `LIKE` on two columns and the text comes from a stranger, so a longer query is
|
||||
cut to its first words (`limitQuery(query, queryLimit)` shows the result); `false` = the whole query, as before.
|
||||
`summaryField` (e.g. `'aiSummary'` — prefers the richer description from
|
||||
`buildSummaryField` over `meta.description`; see [seo.md](./seo.md)). Never throws
|
||||
(error → `[]`).
|
||||
|
||||
`createSearchRoute` additionally takes `getCachedPayload`, `config` (required),
|
||||
`defaultLimit` (10), `rateLimit`, `clientIp` (see `clientIp()` in security.md), `isPathVisible`.
|
||||
`defaultLimit` (10), `rateLimit`, `clientIp` (see `clientIp()` in security.md), `isPathVisible`, `queryLimit`
|
||||
(passed to `searchContent`; the MCP `search_content` tool uses the default).
|
||||
|
||||
`listContent({ payload, config, locale, limit, … })` — the same results without a query:
|
||||
all published, indexable pages by title (`limit` 50, max 200). A list
|
||||
|
||||
@@ -84,6 +84,7 @@ runs `initialize` → `tools/list` → and can then call `get_site_info`,
|
||||
| `rateLimit` | `{ max: 60, windowMs: 60_000 }` | per-IP limit; `false` = off |
|
||||
| `clientIp` | — | `{ header?, trustedProxies? }` — where to read the IP from (see [forms.md](./forms.md#client-ip-and-rate-limit)) |
|
||||
| `maxBatch` | `10` | max messages in one batch |
|
||||
| `maxBytes` | `65536` | largest request body read; a larger one (declared or streamed) → `413` before it is parsed (1.17.1) |
|
||||
|
||||
Through `createContentHelpers({ mcp })` you pass only `serverName`, `serverVersion`,
|
||||
`rateLimit`, `maxBatch`, `clientIp`, `isPathVisible`; `baseUrl`, `collection`, `content`,
|
||||
|
||||
@@ -219,6 +219,7 @@ What the plugin does automatically with an assigned 404 page:
|
||||
| sitemap | excluded by ID (the slug can be anything) |
|
||||
| `generateStaticParams` | skipped (it is not a separate URL) |
|
||||
| `getNotFoundPage` / `resolveNotFoundPage` | never throws — no database during the build = fallback |
|
||||
| a 404 page that is a draft (never published, or unpublished) | `null` → the built-in view, never the draft's text (1.17.1) |
|
||||
|
||||
When 404 = the home page, none of the above hides the home page — it still
|
||||
works under `/{locale}` and is in the sitemap; on top of that its content shows under
|
||||
|
||||
+4
-2
@@ -56,8 +56,10 @@ Spread `defaultConverters` — you override only the nodes you want. The rest
|
||||
|
||||
**Links are filtered as in `<CMSLink>` (`safeHref`).** A custom link with an address outside `http(s)`,
|
||||
`mailto`, `tel`, `sms`, `#`, `/` (e.g. `javascript:`, `data:`) gets `href="#"` — also when it reached
|
||||
the database through an import, a seed or the API, bypassing the panel field. Internal links (`linkType: 'internal'`)
|
||||
are not touched. Turn off (fully trusted content only): `<RenderRichText data={…} safeLinks={false} />`.
|
||||
the database through an import, a seed or the API, bypassing the panel field. Since 1.17.1 one rule covers every
|
||||
stored link URL: an `autolink`, and a link marked `linkType: 'internal'`, are checked too (Payload's autolink
|
||||
converter prints `fields.url` whatever the link type), and `lexicalToMarkdown` (the `.md` routes, llms-full.txt)
|
||||
drops an unsafe target and keeps the label. Turn off (fully trusted content only): `<RenderRichText data={…} safeLinks={false} />`.
|
||||
|
||||
## Table of contents and heading anchors (1.11.1)
|
||||
|
||||
|
||||
+37
-2
@@ -65,6 +65,37 @@ export default withSecurityConfig(withPayload(nextConfig))
|
||||
|
||||
With `IAPL_NOINDEX=1` (staging), `X-Robots-Tag: noindex, nofollow` is added to every response.
|
||||
|
||||
**A value the browser would not understand fails at start (1.17.1).** `hsts`, `hstsIncludeSubDomains` and
|
||||
`hstsPreload` take `true` / `false`, `hstsMaxAge` a number of seconds, `frameOptions` `'DENY'` / `'SAMEORIGIN'` /
|
||||
`null`, `coop` a COOP value or `false`, `referrerPolicy` / `permissionsPolicy` a header value or `null`. Before,
|
||||
`hsts: null` dropped HSTS and `hstsMaxAge: 'abc'` or `frameOptions: 'false'` sent a header the browser ignores.
|
||||
`buildCsp` the same way: `dev` and `strictDynamic` are booleans (`dev: 'false'` used to add `'unsafe-eval'` in
|
||||
production), `mode` is `'enforce'` / `'report-only'`, and every `extra` / `override` value is an array of sources
|
||||
(a string was spread into single characters — a lone `*` among them is a wildcard).
|
||||
|
||||
## Switches are read strictly (1.17.1)
|
||||
|
||||
A JavaScript config is not type-checked. A plugin option whose nonsense value used to switch a protection off,
|
||||
widen who sees something, or switch an opt-in feature (a public endpoint) on, now stops the start with a message
|
||||
naming the option — like `twoFactor.requireSetup.windowHours` since 1.16.6. Real values work as before.
|
||||
|
||||
| Option | Refused now | What it did before |
|
||||
|---|---|---|
|
||||
| `accounts` | `0`, `''`, anything not `false` / an object | `0` or `''` dropped every account rule |
|
||||
| `cookieScanner`, `stats`, `consentLog`, `adminMeta`, `whiteLabel`, `forms.attachments`, `cookieScanner.crawl`, `mail.relay` | a string, a number, `null` | `'false'` switched an opt-in feature on (or was ignored) |
|
||||
| `indexNow`, `lightbox`, `enabled`, `twoFactor.allowCollectionMismatch` | anything but `true` / `false` | `'false'` meant on — for the mismatch: panel users without 2FA |
|
||||
| `consentLog.retentionDays` | not a number above 0 | `null`, `0` or a negative number purged every proof of consent daily |
|
||||
| `adminMeta.robots.index` / `.follow` | anything but `true` / `false` | `'false'`, `0` or `null` took the noindex off the panel |
|
||||
| `dashboardAlerts.integrations` / `.cookies` | a name outside `'admin' / 'editor' / 'all'` (`'editor' / 'all'`) | an unknown name showed the details to every staff account |
|
||||
| `mail.relay.accountMail.windowMinutes`, `mail.relay.confirmRateLimit.windowMs` | not a number above 0 | a window of 0 is a limit that never fills |
|
||||
| `mail.relay.accountMail.perAddress` / `.perVisitor`, `confirmRateLimit.max` | not a number of at least 1 | — |
|
||||
| `forms.attachments.submit.maxPerMinute`, `.timeoutMs`, `.idleTimeoutMs` | not a number of at least 0 (`0` = off, as documented) | `'off'`, `null` or `{}` turned the limit off |
|
||||
| `storageNames` | anything but `'ipal'` / `'iapl'` | an unknown name meant `'ipal'` |
|
||||
| seed `guard` (`createSeeder`) | `0`, `''`; `allowFull` / `allowProdUpdate` / `production` not booleans | `guard: 0` dropped the production guard; `allowFull: 'false'` allowed a full seed |
|
||||
|
||||
Role names are strict too: `requireRole`, `requireRoleField` and `readPublished` throw on a name outside
|
||||
`ROLE_HIERARCHY`, and `hasMinimumRole` / `userMeetsRole` answer `false` for one (before, every staff account met it).
|
||||
|
||||
**Uploads:** `buildUploadSecurityHeaders({ collections = ['media'] })` returns `headers()` rules for
|
||||
`/api/<collection>/file/*` (sandbox, no scripts) — an SVG from local disk cannot run a script on the site's
|
||||
domain. Wire it alongside: `[{ source: '/:path*', headers: securityHeaders }, ...buildUploadSecurityHeaders()]`.
|
||||
@@ -258,7 +289,8 @@ With a custom `adminRoute` (e.g. `/its`), use that path in `source`.
|
||||
|
||||
`createCspReportRoute({ onReport?, maxBytes = 16384 })` — a `POST` handler for `reportUri`. It accepts
|
||||
both formats (`application/csp-report` from `report-uri`, `application/reports+json` from `report-to`),
|
||||
caps the body, always answers `204`, and by default logs one `console.warn` line per violation:
|
||||
caps the body (a larger one → `413`; since 1.17.1 the stream is read only up to `maxBytes`, also when the browser
|
||||
sends no `content-length`), always answers `204`, and by default logs one `console.warn` line per violation:
|
||||
`[csp] report script-src-elem blocked=https://x.example/a.js page=https://site/pl`. Read them in the
|
||||
Coolify app's **Logs**. Plug `onReport` into `payload.logger`, Sentry or a database for more.
|
||||
|
||||
@@ -1020,7 +1052,10 @@ later option, not part of this release.
|
||||
|
||||
**Versions.** The global has no versions by default. A project that turns them on
|
||||
(`globalOverrides: { 'site-integrations': { versions: … } }`) stores the secret in every version — as in the
|
||||
document itself — and reads of versions are masked like any read. A **restore** answers with the version
|
||||
document itself — and reads of versions are masked like any read. Since 1.17.1 the versions are read by the same
|
||||
people as the global (`readVersions`: admin): Payload's own default lets every signed-in account list them, an
|
||||
editor or a plain `user` account included, with the server, user name and status texts. Your own rule:
|
||||
`globalOverrides: { 'site-integrations': { access: { readVersions: … } } }`. A **restore** answers with the version
|
||||
document, the fields under `version`, where field hooks do not run: the global's `afterRead` hook
|
||||
`maskSecretsOnRestore` masks them there too. A restore brings back the password of that version.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user