On 11/11/05, Sechan, Gabe sechan@amazon.com wrote:
It shouldn't be too hard, I'm working on a similar hack myself (mine is slightly more complicated, as I want to give some groups read permission, some read-write, and each page can have more than 0-n groups in each. In other words, Unix style rw permission on pages). All you really need is a page to add people to groups (by adding them to the user_groups table), and you need to mark down the group of the editor in the table when you first create the page- either a new field in the table or in the page_restrictions field. Then change the Title::userCanEdit function to check if $wgUser is in the same group. If not, return false otherwise process as normal. I think that ought to be sufficient to do it.
Hey Gabe.. is there a homepage for this hack, where I can keep an eye on it?