1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Fix bad "editPolicy" key in Paste

Summary: Fixes T12508. Files don't have an `editPolicy`, and we started actually checking that the keys are real things in D17616.

Test Plan:
  - Before patch: created a paste, got an "editPolicy" exception.
  - After patch: created a paste that worked properly.

Reviewers: avivey, chad

Reviewed By: avivey

Maniphest Tasks: T12508

Differential Revision: https://secure.phabricator.com/D17628
This commit is contained in:
epriestley 2017-04-05 12:56:01 -07:00
parent f2a26b2601
commit 2f4ff6a850

View file

@ -79,7 +79,6 @@ final class PhabricatorPasteContentTransaction
'mime-type' => 'text/plain; charset=utf-8', 'mime-type' => 'text/plain; charset=utf-8',
'authorPHID' => $actor->getPHID(), 'authorPHID' => $actor->getPHID(),
'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, 'viewPolicy' => PhabricatorPolicies::POLICY_NOONE,
'editPolicy' => PhabricatorPolicies::POLICY_NOONE,
)); ));
} }