mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Fix watchers to actually work properly
This commit is contained in:
parent
6e9753c66c
commit
481a295454
1 changed files with 3 additions and 1 deletions
|
@ -1931,15 +1931,17 @@ abstract class PhabricatorApplicationTransactionEditor
|
|||
->withPHIDs($watcher_phids)
|
||||
->execute();
|
||||
|
||||
$watchers = array();
|
||||
foreach ($users as $user) {
|
||||
$can_see = PhabricatorPolicyFilter::hasCapability(
|
||||
$user,
|
||||
$object,
|
||||
PhabricatorPolicyCapability::CAN_VIEW);
|
||||
if ($can_see) {
|
||||
$phids[] = $user->getPHID();
|
||||
$watchers[] = $user->getPHID();
|
||||
}
|
||||
}
|
||||
$phids[] = $watchers;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue