1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-08 10:24:48 +01:00

allow phids other than users (i.e. mailinglists)

Summary:
Via the UI adding a mailinglist for CC works, but via
the API currently it shows:

>One or more PHIDs were invalid for ccPHIDS

This removes the user validation check for ccPHIDs.

(I left it in for other things like owner since that seems
still appropriate?)

Test Plan:
used arc locally to add a mailinglist to cc

```echo '{"id": 2, "ccPHIDs": ["PHID-MLST-ohduchbv4dfimk7opt3r"]}' | arc call-conduit maniphest.update```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10193
This commit is contained in:
cpettet 2014-08-08 09:53:35 -07:00 committed by epriestley
parent 59a85e8845
commit 57eb3aecb6

View file

@ -109,10 +109,6 @@ abstract class ManiphestConduitAPIMethod extends ConduitAPIMethod {
$ccs = $request->getValue('ccPHIDs');
if ($ccs !== null) {
$this->validatePHIDList(
$ccs,
PhabricatorPeopleUserPHIDType::TYPECONST,
'ccPHIDS');
$changes[ManiphestTransaction::TYPE_CCS] = $ccs;
}