Merge pull request #13694 from overleaf/revert-13584-bg-managed-users-block-delete-own-account

Revert "block account deletion by managed users"

GitOrigin-RevId: ece8024b2fac16066abd36af9a9670ba483b3628
This commit is contained in:
Brian Gough
2023-07-05 10:13:12 +01:00
committed by Copybot
parent b111e5a59f
commit e859e79a49
8 changed files with 9 additions and 84 deletions
@@ -194,11 +194,6 @@ async function ensureAffiliationMiddleware(req, res, next) {
} catch (error) {
return new Errors.UserNotFoundError({ info: { userId } })
}
try {
req.assertPermission('add-affiliation')
} catch (error) {
return next(error)
}
try {
await ensureAffiliation(user)
} catch (error) {