mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 16:00:59 +01:00
Fix error on paste create via conduit
Summary: default policy to most liberal policy available for the installation Test Plan: echo "sup man?" | arc paste Was able to view resultant paste with no errors! Reviewers: epriestley, vrana Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1815 Differential Revision: https://secure.phabricator.com/D3548
This commit is contained in:
parent
0248c74914
commit
cad1eed24a
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ final class ConduitAPI_paste_create_Method extends ConduitAPI_paste_Method {
|
|||
$paste->setLanguage($language);
|
||||
$paste->setFilePHID($paste_file->getPHID());
|
||||
$paste->setAuthorPHID($user->getPHID());
|
||||
$paste->setViewPolicy(PhabricatorPolicies::POLICY_USER);
|
||||
$paste->save();
|
||||
|
||||
$paste->attachContent($content);
|
||||
|
|
Loading…
Reference in a new issue