mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +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:
parent
c58bd95842
commit
191f6d904f
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue