Page MenuHomePhabricator

D17541.diff
No OneTemporary

D17541.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
Sun, Mar 16, 5:42 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7385812
Default Alt Text
D17541.diff (775 B)

Event Timeline