feat: Add team deletion flow for cloud-hosted (#5717)

This commit is contained in:
Tom Moor
2023-08-21 20:24:46 -04:00
committed by GitHub
parent 5c07694f6b
commit 418d3305b2
26 changed files with 461 additions and 71 deletions

View File

@@ -1,9 +1,14 @@
import env from "@server/env";
import { buildEvent, buildUser } from "@server/test/factories";
import { seed, getTestServer } from "@server/test/support";
const server = getTestServer();
describe("#events.list", () => {
beforeEach(() => {
env.DEPLOYMENT = "hosted";
});
it("should only return activity events", async () => {
const { user, admin, document, collection } = await seed();
// audit event

View File

@@ -42,7 +42,7 @@ router.post(
}
if (auditLog) {
authorize(user, "manage", user.team);
authorize(user, "audit", user.team);
where.name = Event.AUDIT_EVENTS;
}