1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix a bug with "Resign" in Diffusion

Summary: The PHID list is a list, not a map -- I must have broken this in refactoring or something, since everything else works fine. See D2013.

Test Plan: Viewed a resignable revision, saw "Resign" (new after this commit), resignd.

Reviewers: 20after4, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T904

Differential Revision: https://secure.phabricator.com/D2417
This commit is contained in:
epriestley 2012-05-07 13:37:41 -07:00
parent c58bd95842
commit 191f6d904f

View file

@ -604,8 +604,10 @@ final class DiffusionCommitController extends DiffusionController {
// commit's author.
if (!$user_is_author) {
$may_resign = false;
$authority_map = array_fill_keys($this->auditAuthorityPHIDs, true);
foreach ($audit_requests as $request) {
if (empty($this->auditAuthorityPHIDs[$request->getAuditorPHID()])) {
if (empty($authority_map[$request->getAuditorPHID()])) {
continue;
}
$may_resign = true;