On Mon, 29 Jan 2007 12:05:51 -0500, Jim Hu wrote:
There was some discussion on one of the mailing lists about protecting specific sections in a wiki page, where Rob Church noted an extension called ProtectSection.php. I have modified the code to run one of the functions at a different hook, which allows me to also kill any subsection Edit links on headings inside a protected section. I have it working on 1.8.3 and 1.7.1 locally.
I noticed that ProtectSection in svn has been modified by tstarling and hashar (tstarling says "It's still completely broken with section editing, though." ... but it seems to work for me, unless I'm misunderstanding the issue. Also, if the section edit links are gone, the issue may be moot.). How should I submit the code modification for others to look at? I wasn't sure if this should go to bugzilla bug 4375 or here. I hope that my code modification may be worth looking at, but I worry that it's too hacky to warrant consideration yet for the topic of the bug.
It's better to post patches via bugzilla, but things can also be discussed on the list or on IRC.
The edit links point to URLs to edit the individual sections. without those links, you'd have to type in the URL yourself in the browser, which would make it slightly more difficult to edit the sections.
The thing to be careful of is that Mediawiki isn't really intended to have that level of protection, but people who aren't as familiar with it could mistake a casual deterent for real security.