diff --git a/server/commands/documentLoader.ts b/server/commands/documentLoader.ts index fe66197fb..4262e54b0 100644 --- a/server/commands/documentLoader.ts +++ b/server/commands/documentLoader.ts @@ -186,6 +186,9 @@ export default async function loadDocument({ // It is possible to disable sharing at the team level so we must check const team = await Team.findByPk(document.teamId, { rejectOnEmpty: true }); + if (team.suspendedAt) { + throw NotFoundError(); + } if (!team.sharing) { throw AuthorizationError(); }