1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/src/applications/people/query
epriestley 1667acfa5d Implement "PolicyInterface" on "UserEmail" so "EmailQuery" can load them properly
Summary:
See PHI1558. Ref T11860. Ref T13444. I partly implemented PHIDs for "UserEmail" objects, but they can't load on their own so you can't directly `bin/remove destroy` them yet.

Allow them to actually load by implementing "PolicyInterface".

Addresses are viewable and editable by the associated user, unless they are a bot/list address, in which case they are viewable and editable by administrators (in preparation for T11860). This has no real impact on anything today.

Test Plan:
  - Used `bin/remove destroy <phid>` to destroy an individual email address.
  - Before: error while loading the object by PHID in the query policy layer.
  - After: clean load and destroy.

Maniphest Tasks: T13444, T11860

Differential Revision: https://secure.phabricator.com/D20927
2019-11-25 15:08:13 -08:00
..
PhabricatorPeopleLogQuery.php Provide a basic detail view for user activity logs 2019-07-24 07:14:07 -07:00
PhabricatorPeopleLogSearchEngine.php Give user log types a tokenizer and datasource instead of a page of checkboxes 2019-07-24 07:11:42 -07:00
PhabricatorPeopleQuery.php Convert simple query subclasses to use internal cursors 2019-03-19 13:00:27 -07:00
PhabricatorPeopleSearchEngine.php Implement common infrastructure fields as export extensions 2018-01-29 16:05:32 -08:00
PhabricatorPeopleTransactionQuery.php Implement PhabricatorApplicationTransactionInterface on PhabricatorUser 2015-06-08 13:35:57 -07:00
PhabricatorPeopleUserEmailQuery.php Implement "PolicyInterface" on "UserEmail" so "EmailQuery" can load them properly 2019-11-25 15:08:13 -08:00