soft deleted page checks

This commit is contained in:
Philipinho
2026-02-10 17:17:24 -08:00
parent 7610e8458b
commit dacc26dea7
3 changed files with 23 additions and 6 deletions
@@ -54,7 +54,7 @@ export class AuthenticationExtension implements Extension {
const page = await this.pageRepo.findById(pageId);
if (!page) {
this.logger.warn(`Page not found: ${pageId}`);
this.logger.debug(`Page not found: ${pageId}`);
throw new NotFoundException('Page not found');
}
@@ -96,6 +96,10 @@ export class AuthenticationExtension implements Extension {
}
}
if (page.deletedAt) {
data.connectionConfig.readOnly = true;
}
this.logger.debug(`Authenticated user ${user.id} on page ${pageId}`);
return {