mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Fix undefined variable in HeraldAction
Summary: `$no_permission` is only defined within `if ($object instanceof PhabricatorPolicyInterface)`, thus move the check for `if ($no_permission)` into that clause. Test Plan: Read the code. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25741
This commit is contained in:
parent
a039c4952f
commit
0b93685cc9
1 changed files with 3 additions and 4 deletions
|
@ -298,11 +298,10 @@ abstract class HeraldAction extends Phobject {
|
||||||
$no_permission[] = $phid;
|
$no_permission[] = $phid;
|
||||||
unset($targets[$phid]);
|
unset($targets[$phid]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($no_permission) {
|
if ($no_permission) {
|
||||||
$this->logEffect(self::DO_STANDARD_PERMISSION, $no_permission);
|
$this->logEffect(self::DO_STANDARD_PERMISSION, $no_permission);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $targets;
|
return $targets;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue