This commit is contained in:
Philipinho
2026-01-06 23:49:53 +00:00
parent 873dd3bb51
commit f2de4a1839
2 changed files with 0 additions and 3 deletions
@@ -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}`,
@@ -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 {