Additional policy regarding comments on a document (#5130)
* feat: comment policy on document * fix: add alongside read
This commit is contained in:
@@ -29,7 +29,7 @@ router.post(
|
||||
userId: user.id,
|
||||
transaction,
|
||||
});
|
||||
authorize(user, "read", document);
|
||||
authorize(user, "comment", document);
|
||||
|
||||
const comment = await commentCreator({
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user