Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14759236
D17541.id42189.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
775 B
Referenced Files
None
Subscribers
None
D17541.id42189.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17541: Don't show the "Override Lock" prompt when creating objects
Attached
Detach File
Event Timeline
Log In to Comment