Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15284573
D19169.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19169.diff
View Options
diff --git a/src/applications/project/editor/PhabricatorProjectTransactionEditor.php b/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
--- a/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
+++ b/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
@@ -156,11 +156,14 @@
PhabricatorPolicyCapability::CAN_EDIT);
}
} else {
- // You need CAN_EDIT to change members other than yourself.
- PhabricatorPolicyFilter::requireCapability(
- $this->requireActor(),
- $object,
- PhabricatorPolicyCapability::CAN_EDIT);
+ if (!$this->getIsNewObject()) {
+ // You need CAN_EDIT to change members other than yourself.
+ // (PHI193) Just skip this check if we're creating a project.
+ PhabricatorPolicyFilter::requireCapability(
+ $this->requireActor(),
+ $object,
+ PhabricatorPolicyCapability::CAN_EDIT);
+ }
}
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 10:03 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224924
Default Alt Text
D19169.diff (1 KB)
Attached To
Mode
D19169: Don't require project edit permission to create a project with members other than yourself
Attached
Detach File
Event Timeline
Log In to Comment