[Mediawiki-l] Page access restiction

Sechan, Gabe sechan at amazon.com
Fri Nov 11 20:00:57 UTC 2005


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.

Gabe 

-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org [mailto:mediawiki-l-bounces at Wikimedia.org] On Behalf Of Rob Church
Sent: Friday, November 11, 2005 11:35 AM
To: Matthias Hirsch-Hoffmann; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Page access restiction

The simple answer is no, not with the current software, and to be honest, it's almost guaranteed it will never support what you describe. You can either hack the software yourself, or you can search for an extension to do what you ask.

http://meta.wikimedia.org/wiki/Category:MediaWiki_extensions might be a good starting point; remember also Google is your friend.


Rob Church

On 11/11/05, Matthias Hirsch-Hoffmann <mhh at ethz.ch> wrote:
> Hi all wikianers
>
> My Newbie-Question on a Wiki 1.5 System:
> I have two groups, G1 and G2 with users.
> I want to set the permission as follow:
> All users can read all pages, created by users of G1 and G2.
> Only users of G1 can edit pages created by users of G1 and only users 
> of G2 can edit pages created by users of G2.
>
> Is there a way?
>
> Thanks for your help.
> Regards
> Matthias Hirsch-Hoffmann
> ETH Zurich (Switzerland)
> mhh at ethz dot ch
>
>
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list