chore: update src/pages/api/repos/[owner]/[repo]/wiki/index.ts
swadhinbiswas committed 8 months ago
86e4d2d
1 parent 0b2c5eb
commit 86e4d2d
1 file changed
+0 -2
Showing 1 changed file+0-2
▼src/pages/api/repos/[owner]/[repo]/wiki/index.ts
+0-2
| @@ -19,8 +19,6 @@ export const GET: APIRoute = async ({ request, params }) => { | ||
19 | 19 | const repoData = await getRepoAndUser(request, owner, repo); |
20 | 20 | |
21 | 21 | if (!repoData) return notFound("Repository not found"); |
22 | - // Check read access (public repos are readable) | |
23 | - if (repoData.permission === "none") return notFound("Repository not found"); | |
24 | 22 | |
25 | 23 | const pages = await db.query.wikiPages.findMany({ |
26 | 24 | where: eq(wikiPages.repositoryId, repoData.repository.id), |
27 | 25 | |