From addcef962b936e0b5ecf20508ca98db7aaa6c927 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sun, 14 Jun 2015 14:11:22 +1000 Subject: [PATCH] Publish books with the most-open policy Summary: Ref T4558. When publishing a new Diviner book, use the most-open policy instead of `PhabricatorPolicies::POLICY_USER`. Test Plan: Ran `diviner generate` in a directory which didn't have published Diviner documentation. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T4558 Differential Revision: https://secure.phabricator.com/D13254 --- src/applications/diviner/publisher/DivinerLivePublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diviner/publisher/DivinerLivePublisher.php b/src/applications/diviner/publisher/DivinerLivePublisher.php index 1bad2dcb8e..f2dfaa0a31 100644 --- a/src/applications/diviner/publisher/DivinerLivePublisher.php +++ b/src/applications/diviner/publisher/DivinerLivePublisher.php @@ -12,7 +12,7 @@ final class DivinerLivePublisher extends DivinerPublisher { if (!$book) { $book = id(new DivinerLiveBook()) ->setName($book_name) - ->setViewPolicy(PhabricatorPolicies::POLICY_USER) + ->setViewPolicy(PhabricatorPolicies::getMostOpenPolicy()) ->save(); }