Return correct permissions upon document update (#4352)
This commit is contained in:
@@ -863,6 +863,7 @@ router.post("documents.update", auth(), async (ctx) => {
|
||||
userId: user.id,
|
||||
includeState: true,
|
||||
});
|
||||
collection = document?.collection;
|
||||
authorize(user, "update", document);
|
||||
|
||||
if (publish) {
|
||||
|
||||
Reference in New Issue
Block a user