We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b5353 commit 342f269Copy full SHA for 342f269
packages/core/server/controllers/core.ts
@@ -75,6 +75,11 @@ export default {
75
// Find related entity by path.
76
const { entity, contentType } = await getPluginService('url-alias').findRelatedEntity(path as string, searchQuery);
77
78
+ if (!entity) {
79
+ ctx.notFound();
80
+ return;
81
+ }
82
+
83
// Check 'find' permissions for the content type we're querying.
84
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
85
await strapi.auth.verify(auth, { scope: [`${contentType}.find`] });
0 commit comments