diff --git a/packages/server/src/services/document.service.ts b/packages/server/src/services/document.service.ts index 7d091ba4..0d48e279 100644 --- a/packages/server/src/services/document.service.ts +++ b/packages/server/src/services/document.service.ts @@ -630,7 +630,7 @@ export class DocumentService { userId: user.id, }); - if (!authority || !authority.editable) { + if (!authority || !authority.readable) { throw new HttpException( '您无权查看该文档下的子文档', HttpStatus.FORBIDDEN, @@ -686,8 +686,6 @@ export class DocumentService { }) { const { wikiId, documentId } = data; - console.log('share'); - const document = documentId ? await this.documentRepo.findOne(documentId) : await this.documentRepo.findOne({ wikiId, isWikiHome: true });