diff --git a/server/api/story/[id]/full.get.ts b/server/api/story/[id]/full.get.ts index d8e2988..35a1219 100644 --- a/server/api/story/[id]/full.get.ts +++ b/server/api/story/[id]/full.get.ts @@ -8,7 +8,11 @@ export default eventHandler(async (ev) => { isLoggedIn(ev); const s = await storyQuerier(ev); const hidden = s.chapters.some((a) => a.hidden); - if (hidden && ev.context.currentUser?._id !== s.author._id) { + if ( + hidden && + ev.context.currentUser?._id !== s.author._id && + !ev.context.currentUser?.profile.isAdmin + ) { throw createError({ statusCode: 403, message: messages[403],