I dealt with a little bit of this, though I probably don't know any more
than you do, overall.
Basically, if you look at something like /includes/SpecialLockdb.php, you'll
see:
function wfSpecialLockdb() {
global $wgUser, $wgOut, $wgRequest;
if( !$wgUser->isAllowed( 'siteadmin' ) ) {
$wgOut->permissionRequired( 'siteadmin' );
return;
}
This means that if you visit the page without having been granted the
siteadmin permission, you'll get a message:
The action you have requested is limited to users in the group "siteadmin".
So you can apply similar code to any other page you want to protect,
changing the group as needed. Of course, if the group isn't registered
users or administrators or something else that's already defined, you'll
have to create it so that you can actually assign it:
$wgGroupPermissions['siteadmin']['siteadmin'] = true;
I wouldn't be surprised if there's a better way, but this is what I found
from my poking around.
On 2/15/07, Fernando Carpani - INCO <carpani(a)fing.edu.uy> wrote:
Hello.
I'm using PageSecurity on Mediawiki 1.9.1 with postgresql... and
works.... (to me :-) )
But, in my security scheme, I need public pages (readble for anonymous
user) and private pages (readable and writable for some groups). This
works OK with articles but I need control some special pages in the same
way. For example, Listuser... I don't want that an anonumous user can
see the user list... (or specialpages)...but I want that some groups
(or logged users) can use this pages....
How can be done this things?
I'm learning about hooks, and extensions, but.... the hook apropiated
for that (until I can see... ) can restrict the list of Special Pages
or Query pages.... but if someone knows the url can execute them...
I suppose that can limit the link generation, but someone can invoque
the page with the URL....Obviously, I'm not an expert in PHP but... I'm
trying to learn :-)
Someone has any development over this things? I'm undertstandig the
mechanism... or I'm loose in a sea of php files... I dont know? someone
can guide me?
Thanks.
Fernando Carpani
PS: Yes, I know.... I need to learn english... sorry :-)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
Emufarmers Sangly
Pirate, Cowboy,
Hellraiser