1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00

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
This commit is contained in:
Joshua Spence 2015-06-14 14:11:22 +10:00
parent e74f027f0a
commit addcef962b

View file

@ -12,7 +12,7 @@ final class DivinerLivePublisher extends DivinerPublisher {
if (!$book) { if (!$book) {
$book = id(new DivinerLiveBook()) $book = id(new DivinerLiveBook())
->setName($book_name) ->setName($book_name)
->setViewPolicy(PhabricatorPolicies::POLICY_USER) ->setViewPolicy(PhabricatorPolicies::getMostOpenPolicy())
->save(); ->save();
} }