diff --git a/.changeset/heavy-jars-repair.md b/.changeset/heavy-jars-repair.md new file mode 100644 index 0000000000..b4fba9f00c --- /dev/null +++ b/.changeset/heavy-jars-repair.md @@ -0,0 +1,25 @@ +--- +'@backstage/create-app': patch +--- + +Added three additional required properties to the search-backend `createRouter` function to support filtering search results based on permissions. To make this change to an existing app, add the required parameters to the `createRouter` call in `packages/backend/src/plugins/search.ts`: + +```diff +export default async function createPlugin({ + logger, ++ permissions, + discovery, + config, + tokenManager, +}: PluginEnvironment) { + /* ... */ + + return await createRouter({ + engine: indexBuilder.getSearchEngine(), ++ types: indexBuilder.getDocumentTypes(), ++ permissions, ++ config, + logger, + }); +} +```