From f2de4a1839b9e531ee9950b7ffcf0721a1ab3bf9 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 6 Jan 2026 23:49:53 +0000 Subject: [PATCH] WIP --- .../src/collaboration/extensions/authentication.extension.ts | 1 - apps/server/src/core/attachment/attachment.controller.ts | 2 -- 2 files changed, 3 deletions(-) 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 {