diff --git a/apps/server/src/collaboration/extensions/authentication.extension.ts b/apps/server/src/collaboration/extensions/authentication.extension.ts index 92d30461..680afde0 100644 --- a/apps/server/src/collaboration/extensions/authentication.extension.ts +++ b/apps/server/src/collaboration/extensions/authentication.extension.ts @@ -75,7 +75,6 @@ export class AuthenticationExtension implements Extension { await this.pagePermissionRepo.getUserPageAccessLevel(user.id, page.id); if (hasRestriction) { - // Page has restrictions - use page-level permissions if (!canAccess) { this.logger.warn( `User ${user.id} denied page-level access to page: ${pageId}`, diff --git a/apps/server/src/core/attachment/attachment.controller.ts b/apps/server/src/core/attachment/attachment.controller.ts index 4ca17713..8e2a9e87 100644 --- a/apps/server/src/core/attachment/attachment.controller.ts +++ b/apps/server/src/core/attachment/attachment.controller.ts @@ -113,7 +113,6 @@ export class AttachmentController { throw new NotFoundException('Page not found'); } - // Checks both space-level and page-level edit permissions await this.pageAccessService.validateCanEdit(page, user); const spaceId = page.spaceId; @@ -173,7 +172,6 @@ export class AttachmentController { throw new NotFoundException(); } - // Checks both space-level and page-level view permissions await this.pageAccessService.validateCanView(page, user); try {