[Mediawiki-l] How to prevent access of different user groups to different namespaces

James Mohr mediawiki at jimmo.com
Wed Jun 14 16:43:43 UTC 2006


On Wednesday 14 June 2006 12:33, Rotem Liss wrote:
> James Mohr wrote:
> > Sorry about the top post ....
> >
> > Personally, I would like to see them add an programmable authentication
> > module. For example before editing or even displaying a page, it calls a
> > function like is_authorized() which returns 1 or 0. By default the
> > function returns 1. You can then add any code to check all sorts of
> > security related issues.
> >
> > regards,
> >
> > jimmo
>
> I think this fucntion is already exist (for editing/moving/creating
> page), and is called Title::userCan (includes/Title.php). As far as I
> understand, you can hook it (or just edit it) and return false if it is
> not some public namespace or a talk namespace and the user doesn't have
> the necessary permission.

Very cool! Thanks! I will definately have to take a look at it.

Regards,

jimmo
-- 
---------------------------------------
"Be more concerned with your character than with your reputation. Your
character is what you really are while your reputation is merely what others
think you are." -- John Wooden
---------------------------------------
Be sure to visit the Linux Tutorial:  http://www.linux-tutorial.info



More information about the MediaWiki-l mailing list