Merge main
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user