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
This commit is contained in:
@@ -49,6 +49,7 @@ final class PhabricatorPasteEditController extends PhabricatorPasteController {
|
||||
|
||||
if ($parent) {
|
||||
$paste->setParentPHID($parent->getPHID());
|
||||
$paste->setViewPolicy($parent->getViewPolicy());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user