Page MenuHomePhabricator

Accessing Special:PrivateDomains as an anon incorrectly links to Special:EmailUser for the contact person link
Open, Needs TriagePublic

Description

Accessing Special:PrivateDomains as an anon incorrectly links to Special:EmailUser for the contact person link. This shouldn't link to this page since anons can't use it.

Perhaps we could make it for anons link to that person's userpage instead, and make it configurable via a MediaWiki message in case if contact details aren't available on there (e.g wikis could link it to Project:Contact or Project:Administrators if they wanted to).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 14 2017, 11:22 PM
SamanthaNguyen moved this task from Backlog to Bugs on the PrivateDomains board.Jun 14 2017, 11:24 PM

PrivateDomains has a customized version of SpecialPage::displayRestrictionError in the PrivateDomains class (SpecialPrivateDomains.php). It currently uses the i18n msg privatedomains-ifemailcontact which does indeed contain a link to Special:EmailUser; I suppose the correct way to go about this is to check for the user's login state in PrivateDomains::displayRestrictionError and display a different, yet-to-be-created msg for anons. Wanna submit a patch?

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptJun 15 2017, 12:54 PM
SamanthaNguyen removed SamanthaNguyen as the assignee of this task.Jun 30 2018, 7:10 PM
SamanthaNguyen removed a subscriber: SamanthaNguyen.