Merge main

This commit is contained in:
Tom Moor
2021-02-07 12:58:17 -08:00
233 changed files with 7243 additions and 4147 deletions

View File

@@ -77,7 +77,7 @@ allow(User, "delete", Collection, (user, collection) => {
}
if (user.isAdmin) return true;
if (user.id === collection.creatorId) return true;
if (user.id === collection.createdById) return true;
throw new AdminRequiredError();
});