more checks for collab auth token (#1345)

This commit is contained in:
Philip Okugbe
2025-07-14 02:35:03 -07:00
committed by GitHub
parent e856c8eb69
commit e51a93221c
4 changed files with 15 additions and 10 deletions
@@ -46,6 +46,10 @@ export class AuthenticationExtension implements Extension {
throw new UnauthorizedException();
}
if (user.deactivatedAt || user.deletedAt) {
throw new UnauthorizedException();
}
const page = await this.pageRepo.findById(pageId);
if (!page) {
this.logger.warn(`Page not found: ${pageId}`);