1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00

Fix inverted check in audit triggers for "uninvolved owner"

Summary: See D20126. I was trying to be a little too cute here with the names and ended up confusing myself, then just tested the method behavior. :/

Test Plan: Persudaded by arguments in D20126.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20135
This commit is contained in:
epriestley 2019-02-11 06:55:23 -08:00
parent 711871f6bc
commit 77247084bd

View file

@ -174,12 +174,12 @@ final class PhabricatorRepositoryCommitOwnersWorker
// If auditing is configured to trigger on changes with no involved owner,
// check for an owner. If we don't find one, trigger an audit.
if ($audit_uninvolved) {
$commit_uninvolved = $this->isOwnerInvolved(
$owner_involved = $this->isOwnerInvolved(
$commit,
$package,
$author_phid,
$revision);
if ($commit_uninvolved) {
if (!$owner_involved) {
return true;
}
}