Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Re: [MediaWiki-CVS] SVN: [24283] trunk/extensions

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


Simetrical+wikilist at gmail

Jul 20, 2007, 8:12 AM

Post #1 of 3 (490 views)
Permalink
Re: [MediaWiki-CVS] SVN: [24283] trunk/extensions

On 7/20/07, amidaniel [at] svn <amidaniel [at] svn> wrote:
> Revision: 24283
> Author: amidaniel
> Date: 2007-07-20 08:38:06 +0000 (Fri, 20 Jul 2007)
>
> Log Message:
> -----------
> Add really simple extension for restricting read/write access by namespace, an oft-requested
> utility. Works with 1.9.0+, possibly with older too.

Have you looked at the Lockdown extension?
http://www.mediawiki.org/wiki/Extension:Lockdown

Also, doesn't that transclusion hook break due to the parser cache?
We have $wgNonincludableNamespaces for this.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/wikitech-l


cannon.danielc at gmail

Jul 20, 2007, 10:43 AM

Post #2 of 3 (427 views)
Permalink
Re: [MediaWiki-CVS] SVN: [24283] trunk/extensions [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simetrical wrote:
> Have you looked at the Lockdown extension?
> http://www.mediawiki.org/wiki/Extension:Lockdown

I believe I've looked at that before, but I just re-read over it. It
doesn't, however, address what I needed with this. In particular, this
extension was written for 1.9.x for a user who was struggling with doing
exactly what this extension does (restricting read and every other kind
of access to a namespace). Additionally, Lockdown is a bit too
customizable--this extension's meant to address a single issue in as
simple a way as possible.

>
> Also, doesn't that transclusion hook break due to the parser cache?
> We have $wgNonincludableNamespaces for this.

That was introduced in 1.10 and thus not useful here. I noted that the
parser cache can cause problems with this; however, the only way that
this could happen would be if a user who is allowed to access restricted
content saves a page transcluding a page in that restricted namespace.
If you know of a better way to prevent the transclusion of a
non-readable page in a readable page without the aid of
$wgNonincludableNamespaces, please do let me know.

- --
Daniel Cannon (AmiDaniel)

http://amidaniel.com
cannon.danielc [at] gmail
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGoPQuFRAT5u/mSaMRAi/kAJ9ut5PvyhdmIljDoAirIsAp5w9Y7gCdF1pO
dUZMLTPmyT+4Z9e4MAU4eD8=
=Uzm9
-----END PGP SIGNATURE-----

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

Jul 20, 2007, 11:10 AM

Post #3 of 3 (426 views)
Permalink
Re: [MediaWiki-CVS] SVN: [24283] trunk/extensions [In reply to]

On 7/20/07, Daniel Cannon <cannon.danielc [at] gmail> wrote:
> > Also, doesn't that transclusion hook break due to the parser cache?
> > We have $wgNonincludableNamespaces for this.
>
> That was introduced in 1.10 and thus not useful here. I noted that the
> parser cache can cause problems with this; however, the only way that
> this could happen would be if a user who is allowed to access restricted
> content saves a page transcluding a page in that restricted namespace.
> If you know of a better way to prevent the transclusion of a
> non-readable page in a readable page without the aid of
> $wgNonincludableNamespaces, please do let me know.

You could ignore who the current user is and just check if the
included namespace has more restrictive permissions (possibly not
strictly more restrictive) than the including namespace. Otherwise
you have something that appears to work, but then a null edit by
another user breaks it.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
http://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.