wiki.techinc.nl/includes/mail
Daimona Eaytoy ead444b208 mail: Make EmailUser::getPermissionsError() return StatusValue
This is non-trivial because:
- "blockedemailuser" is not a real message, so it can't be passed to
  StatusValue. For now, use BlockErrorFormatter to obtain a suitable
  message. In the future, we should simply rely on
  Authority/PermissionManager to set a message for us, but that's left
  for another change.
- The hooks used here return an error in the format accepted by
  ErrorPageError. There's no "official" way to do this with StatusValue.
  This patch uses StatusValue::value as a temporary workaround, but
  these hooks should be replaced with a new hook that uses StatusValue
  for errors.

As an aside, note that ApiEmailUser passes the return value of
getPermissionsError to dieWithError(), which doesn't work in the cases
above. This is a pre-existing issue that will be fixed in another patch.

Bug: T265541
Change-Id: I84cc521b24adef6406e0378a293438d5cd7db02a
2023-05-20 13:21:59 +00:00
..
Hook Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
Emailer.php Clean up and simplify SpecialEmailUser::submit 2021-03-31 01:55:30 +00:00
EmailNotification.php Replace internal Hooks::runner 2023-05-11 06:17:38 +00:00
EmailUser.php mail: Make EmailUser::getPermissionsError() return StatusValue 2023-05-20 13:21:59 +00:00
IEmailer.php Fix various documentation related to null types (part II) 2022-03-08 23:45:31 +00:00
MailAddress.php mail: Round 2 of EmailUser refactoring 2023-05-17 09:58:21 +00:00
UserEmailContact.php Convert mail namespace to Authority/UserIdentity 2021-04-01 15:46:09 -06:00
UserMailer.php Replace internal Hooks::runner 2023-05-11 06:17:38 +00:00