fix: updateInsights policy missing
This commit is contained in:
@@ -130,7 +130,7 @@ allow(User, "createChildDocument", Document, (actor, document) =>
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
allow(User, ["pin", "unpin"], Document, (actor, document) =>
|
allow(User, ["updateInsights", "pin", "unpin"], Document, (actor, document) =>
|
||||||
and(
|
and(
|
||||||
can(actor, "update", document),
|
can(actor, "update", document),
|
||||||
can(actor, "update", document?.collection),
|
can(actor, "update", document?.collection),
|
||||||
|
|||||||
Reference in New Issue
Block a user