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

@@ -48,7 +48,7 @@ router.post(
type,
};
const team = await Team.findByPk(user.teamId);
authorize(user, "manage", team);
authorize(user, "update", team);
const [exports, total] = await Promise.all([
FileOperation.findAll({