From a243efff71078b3125db281c607fc6b0928fe49d Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Mon, 19 Jun 2023 01:35:11 +0100 Subject: [PATCH] docs: Remove implementation of custom ACs in API. --- src/access-controllers/index.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/access-controllers/index.js b/src/access-controllers/index.js index 7a47273..97ab219 100644 --- a/src/access-controllers/index.js +++ b/src/access-controllers/index.js @@ -4,18 +4,6 @@ * Provides a platform for managing access controllers. Supported access * controllers can be added and removed from the access controller list, and * can load the associated module if they are supported. - * - * An AccessController module needs to only expose one function, - * canAppend(entry) which returns true if the entry can be appended to the - * oplog, or false otherwise: - * ```javascript - * const CustomAccessController = ({ write } = {}) => async => { - * const canAppend = async (entry) => { - * // Use entry.identity to determine whether the entry can be appended. - * // Return true if entry can be appended to OpLog. - * // Or return false otherwise. - * } - * } */ import IPFSAccessController from './ipfs.js' import OrbitDBAccessController from './orbitdb.js'