From 217545148089fb0d2dd14fcca12e0893db9f97ef Mon Sep 17 00:00:00 2001 From: zuccs Date: Sat, 21 Dec 2024 07:19:45 +1100 Subject: [PATCH] docs: fix broken links (#10010) Co-authored-by: Jacob Fletcher --- docs/access-control/collections.mdx | 10 +++++----- docs/access-control/globals.mdx | 10 +++++----- docs/admin/views.mdx | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/access-control/collections.mdx b/docs/access-control/collections.mdx index c21bc8b961..e556ffcf5a 100644 --- a/docs/access-control/collections.mdx +++ b/docs/access-control/collections.mdx @@ -76,7 +76,7 @@ If a Collection supports [Versions](../versions/overview), the following additio Returns a boolean which allows/denies access to the `create` request. -To add create Access Control to a Collection, use the `create` property in the [Collection Config](../collections/overview): +To add create Access Control to a Collection, use the `create` property in the [Collection Config](../configuration/collections): ```ts import type { CollectionConfig } from 'payload' @@ -104,7 +104,7 @@ The following arguments are provided to the `create` function: Returns a boolean which allows/denies access to the `read` request. -To add read Access Control to a Collection, use the `read` property in the [Collection Config](../collections/overview): +To add read Access Control to a Collection, use the `read` property in the [Collection Config](../configuration/collections): ```ts import type { CollectionConfig } from 'payload' @@ -158,7 +158,7 @@ The following arguments are provided to the `read` function: Returns a boolean which allows/denies access to the `update` request. -To add update Access Control to a Collection, use the `update` property in the [Collection Config](../collections/overview): +To add update Access Control to a Collection, use the `update` property in the [Collection Config](../configuration/collections): ```ts import type { CollectionConfig } from 'payload' @@ -208,7 +208,7 @@ The following arguments are provided to the `update` function: Similarly to the Update function, returns a boolean or a [query constraint](/docs/queries/overview) to limit which documents can be deleted by which users. -To add delete Access Control to a Collection, use the `delete` property in the [Collection Config](../collections/overview): +To add delete Access Control to a Collection, use the `delete` property in the [Collection Config](../configuration/collections): ```ts import type { CollectionConfig } from 'payload' @@ -288,7 +288,7 @@ The following arguments are provided to the `admin` function: Determines which users can [unlock](/docs/authentication/operations#unlock) other users who may be blocked from authenticating successfully due to [failing too many login attempts](/docs/authentication/overview#options). -To add Unlock Access Control to a Collection, use the `unlock` property in the [Collection Config](../collections/overview): +To add Unlock Access Control to a Collection, use the `unlock` property in the [Collection Config](../configuration/collections): ```ts import type { CollectionConfig } from 'payload' diff --git a/docs/access-control/globals.mdx b/docs/access-control/globals.mdx index 1f6ca9effc..7fa30ef864 100644 --- a/docs/access-control/globals.mdx +++ b/docs/access-control/globals.mdx @@ -6,7 +6,7 @@ desc: Global-level Access Control is specified within each Global's `access` pro keywords: globals, access control, permissions, documentation, Content Management System, cms, headless, javascript, node, react, nextjs --- -Global Access Control is [Access Control](../overview) used to restrict access to [Global](../globals/overview) Documents, as well as what they can and cannot see within the [Admin Panel](../admin/overview) as it relates to that Global. +Global Access Control is [Access Control](../overview) used to restrict access to [Global](../configuration/globals) Documents, as well as what they can and cannot see within the [Admin Panel](../admin/overview) as it relates to that Global. To add Access Control to a Global, use the `access` property in your [Global Config](../configuration/globals): @@ -25,7 +25,7 @@ export const GlobalWithAccessControl: GlobalConfig = { Access Control is specific to the operation of the request. -To add Access Control to a [Global](../configuration/globals), use the `access` property in the [Global Config](../globals/overview): +To add Access Control to a [Global](../configuration/globals), use the `access` property in the [Global Config](../configuration/globals): ```ts import { GlobalConfig } from 'payload' @@ -63,7 +63,7 @@ If a Global supports [Versions](../versions/overview), the following additional Returns a boolean result or optionally a [query constraint](../queries/overview) which limits who can read this global based on its current properties. -To add read Access Control to a [Global](../configuration/globals), use the `read` property in the [Global Config](../globals/overview): +To add read Access Control to a [Global](../configuration/globals), use the `read` property in the [Global Config](../configuration/globals): ```ts import { GlobalConfig } from 'payload' @@ -90,7 +90,7 @@ The following arguments are provided to the `read` function: Returns a boolean result or optionally a [query constraint](../queries/overview) which limits who can update this global based on its current properties. -To add update Access Control to a [Global](../configuration/globals), use the `access` property in the [Global Config](../globals/overview): +To add update Access Control to a [Global](../configuration/globals), use the `access` property in the [Global Config](../configuration/globals): ```ts import { GlobalConfig } from 'payload' @@ -118,7 +118,7 @@ The following arguments are provided to the `update` function: If the Global has [Versions](../versions/overview) enabled, the `readVersions` Access Control function determines whether or not the currently logged in user can access the version history of a Document. -To add Read Versions Access Control to a Collection, use the `readVersions` property in the [Global Config](../globals/overview): +To add Read Versions Access Control to a Collection, use the `readVersions` property in the [Global Config](../configuration/globals): ```ts import type { GlobalConfig } from 'payload' diff --git a/docs/admin/views.mdx b/docs/admin/views.mdx index b8ab94a655..36a76e39dc 100644 --- a/docs/admin/views.mdx +++ b/docs/admin/views.mdx @@ -198,7 +198,7 @@ The following options are available: Global Views are views that are scoped under the `/globals` route, such as the Document Edit View. -To swap out Global Views with your own or [create entirely new ones](#adding-new-views), use the `admin.components.views` property in your [Global Config](../globals/overview): +To swap out Global Views with your own or [create entirely new ones](#adding-new-views), use the `admin.components.views` property in your [Global Config](../configuration/globals): ```ts import type { SanitizedGlobalConfig } from 'payload' @@ -248,7 +248,7 @@ The following options are available: Document Views are views that are scoped under the `/collections/:collectionSlug/:id` or the `/globals/:globalSlug` route, such as the Edit View or the API View. All Document Views keep their overall structure across navigation changes, such as their title and tabs, and replace only the content below. -To swap out Document Views with your own, or to [create entirely new ones](#adding-new-document-views), use the `admin.components.views.Edit[key]` property in your [Collection Config](../collections/overview) or [Global Config](../globals/overview): +To swap out Document Views with your own, or to [create entirely new ones](#adding-new-document-views), use the `admin.components.views.Edit[key]` property in your [Collection Config](../collections/overview) or [Global Config](../configuration/globals): ```ts import type { SanitizedCollectionConfig } from 'payload'