1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 07:42:40 +01:00
phorge-phorge/src
epriestley dd21761df9 Don't return any results for viewerprojects() if the viewer is in no projects
Summary:
Fixes T10135. When the viewer is a member of no projects, specify the constraint type as a new "EMPTY" type.

When a query has an "EMPTY" constraint, fail fast with no results.

Test Plan:
  - Viewed a viewerprojects() query result set as a user in no projects.
    - Before patch: got a lot of hits. After patch: no hits.
  - Viewed a normal result set, no changes.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10135

Differential Revision: https://secure.phabricator.com/D15003
2016-01-12 07:11:14 -08:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Strip "Transfer-Encoding" headers from proxied HTTP responses 2016-01-07 16:33:09 -08:00
applications Don't return any results for viewerprojects() if the viewer is in no projects 2016-01-12 07:11:14 -08:00
docs Update Phabricator documentation of script-and-regex linter for behavioral change 2016-01-11 17:37:32 -08:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure Don't return any results for viewerprojects() if the viewer is in no projects 2016-01-12 07:11:14 -08:00
view Improve rendering of commit branching graph 2016-01-08 11:52:07 -08:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Remove "username@phabricator.mycompany.com" creating a Conpherence 2016-01-11 10:32:23 -08:00