Last modified: 2010-05-15 15:28:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 679 - Editing mediawiki so only certain users can edit certain pages
Editing mediawiki so only certain users can edit certain pages
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-10-10 21:52 UTC by Will M Z
Modified: 2010-05-15 15:28 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Will M Z 2004-10-10 21:52:49 UTC
On my wiki, users are assigned usernames. I want to restrict them to only
editing specific sections of the wiki. I want to edit mediawiki - I think the
file to edit is includes\EditPage.php so that if a person's username contains a
colon (e.g. "FOO:Bob") then they can only edit pages that are in the same form
(e.g. "FOO:Page_Name"). I want it to treat users with usernames that don't
contain a colon normally. E.g.

1) Someone with the username "FOO:Bob" can edit "FOO:Page_Name" but not

2) Someone with the username "Bob" can edit "FOO:Page_Name" and "BAR:Main_Page"
and "Main_Page"

Hope you can help. I'm happy for this edit to take the form of an edit
converting "you must login to edit this page" to "you must login and have the
right permissions to edit this page". I think that EditPage.php would need to be
edited twice in the areas containing the text:

if ( !$wgUser->getID() && $wgWhitelistEdit ) {

n.b. I was told to post here on:
Comment 1 lɛʁi לערי ריינהארט 2005-10-05 17:13:57 UTC
pair of bugs

*read privilege* bug 1924: Restricted read access for subset of wiki
*edit privilege* bug 679: Editing mediawiki so only certain users can edit
certain pages
Comment 2 Rob Church 2005-12-17 03:18:02 UTC
This isn't something we want to implement in the main software, MediaWiki being
about open editing and the wiki way, after all, sorry. You will find, however,
that some people *have* done a patch in various states and at various levels
which does implement this, so I recommend doing a brief web search, and if you
can't find it, use the mailing list.

Note You need to log in before you can comment on or make changes to this bug.