01b27d547c
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
657 B
657 B
@backstage/create-app
| @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:
export default async function createPlugin({
logger,
+ permissions,
discovery,
config,
tokenManager,
}: PluginEnvironment) {
/* ... */
return await createRouter({
engine: indexBuilder.getSearchEngine(),
+ types: indexBuilder.getDocumentTypes(),
+ permissions,
+ config,
logger,
});
}