mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
fix: 'pinToHome' policy should not be available for drafts, templates, deleted
This commit is contained in:
1 parent
416cb0ceb9
commit
3953bbaa99
1 file changed
+4
-1
@@ -144,7 +144,10 @@ allow(User, "pinToHome", Document, (actor, document) =>
|
||||
and(
|
||||
//
|
||||
isTeamAdmin(actor, document),
|
||||
isTeamMutable(actor)
|
||||
isTeamMutable(actor),
|
||||
!document?.isDraft,
|
||||
!document?.template,
|
||||
!document?.isDeleted
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user