From 27c97571c0698681ebe877e7d70bcb2cafc7e71a Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Sun, 30 Sep 2012 20:08:37 -0700 Subject: [PATCH] Make pastes inherit visibility from their parent Summary: good title Test Plan: set a paste visibility to administrator then forked it. noted new paste had administrators selected. saved it and verified administrators was the value. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1833 Differential Revision: https://secure.phabricator.com/D3570 --- .../paste/controller/PhabricatorPasteEditController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/paste/controller/PhabricatorPasteEditController.php b/src/applications/paste/controller/PhabricatorPasteEditController.php index 9d1488a72c..cdb8fb690e 100644 --- a/src/applications/paste/controller/PhabricatorPasteEditController.php +++ b/src/applications/paste/controller/PhabricatorPasteEditController.php @@ -49,6 +49,7 @@ final class PhabricatorPasteEditController extends PhabricatorPasteController { if ($parent) { $paste->setParentPHID($parent->getPHID()); + $paste->setViewPolicy($parent->getViewPolicy()); } }