Page MenuHomePhabricator

D17541.id42189.diff
No OneTemporary

D17541.id42189.diff

diff --git a/src/applications/transactions/editengine/PhabricatorEditEngine.php b/src/applications/transactions/editengine/PhabricatorEditEngine.php
--- a/src/applications/transactions/editengine/PhabricatorEditEngine.php
+++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php
@@ -996,8 +996,12 @@
$config = $this->getEditEngineConfiguration()
->attachEngine($this);
+ // NOTE: Don't prompt users to override locks when creating objects,
+ // even if the default settings would create a locked object.
+
$can_interact = PhabricatorPolicyFilter::canInteract($viewer, $object);
if (!$can_interact &&
+ !$this->getIsCreate() &&
!$request->getBool('editEngine') &&
!$request->getBool('overrideLock')) {

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 23, 11:42 AM (8 h, 21 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7036773
Default Alt Text
D17541.id42189.diff (775 B)

Event Timeline