mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Exclude disabled (disapproved) users from count on People application on homepage
Summary: The People application shows users awaiting approval, but incorrectly counts disabled users (i.e., users who were not approved). Instead, count only non-disabled, non-approved users. Test Plan: My homepage count dropped from 4 to 1, corresponding to the actual number of accounts. Reviewers: btrahan Reviewed By: btrahan CC: aran, spicyj Differential Revision: https://secure.phabricator.com/D8486
This commit is contained in:
parent
c857f8cacb
commit
0a779b60a2
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ final class PhabricatorApplicationPeople extends PhabricatorApplication {
|
|||
$need_approval = id(new PhabricatorPeopleQuery())
|
||||
->setViewer($user)
|
||||
->withIsApproved(false)
|
||||
->withIsDisabled(false)
|
||||
->execute();
|
||||
|
||||
if (!$need_approval) {
|
||||
|
|
Loading…
Reference in a new issue