Skip to content

Document access control for Special:ImportFromPid and recommend fix#192

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/clarify-user-groups-access
Draft

Document access control for Special:ImportFromPid and recommend fix#192
Copilot wants to merge 2 commits intomainfrom
copilot/clarify-user-groups-access

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 9, 2026

Special:ImportFromPid is gated on the MediaWiki import right, which is only granted to sysop by default — making the page admin-only.

Root cause

In wikimedia/mediawiki-extensions-MathSearch (includes/Specials/SpecialImport.php):

parent::__construct( 'ImportFromPid', 'import' );

Recommended fix

Introduce a dedicated mardimport right rather than reusing the broad import right.

SpecialImport.php

parent::__construct( 'ImportFromPid', 'mardimport' );

extension.json

"AvailableRights": ["mathwmcsubmit", "mardimport"],
"GroupPermissions": {
    "sysop": { "mathwmcsubmit": true },
    "user":  { "mardimport": true }
}

Changes need to land in wikimedia/mediawiki-extensions-MathSearch and be picked up by the portal deployment. Full details in docs/import-special-page-access.md.

Copilot AI changed the title [WIP] Clarify user groups that can access Import Special Page Document access control for Special:ImportFromPid and recommend fix Apr 9, 2026
Copilot AI requested a review from physikerwelt April 9, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify user groups that can access Import Special Page

2 participants