Hi,
I installed the mediawiki 1.5rc4 and I'm having some problems with the User Rights Management feature. I added some groups in the Localsetting.php but I don't know how to restrict some pages for these groups. Example:
I added these lines to my LocalSettings.php:
$wgGroupPermissions = array ("Main Page", "Special:Blockip", "Special:Userlogin" ); $wgGroupPermissions['aplications']['edit'] = true; $wgGroupPermissions['aplications']['move'] = false; $wgGroupPermissions['aplications']['read'] = true;
I'm following the instructions found on the ./includes/Defaultsettings.php file and I'm not certain about the line that I added:
$wgGroupPermissions = array ("Main Page", "Special:Blockip", "Special:Userlogin" );
I want that the Aplications Group only view and edit the Main Page, Special:Blockip and the Special:Userlogin page.
Does anyone know how to do this?
Thanks
Jeff
Jeferson Pessoa Santana wrote:
I installed the mediawiki 1.5rc4 and I'm having some problems with the User Rights Management feature. I added some groups in the Localsetting.php but I don't know how to restrict some pages for these groups. Example:
I added these lines to my LocalSettings.php:
$wgGroupPermissions = array ("Main Page", "Special:Blockip", "Special:Userlogin" );
Well, that's going to break everything right there. Why did you do that?
$wgGroupPermissions['aplications']['edit'] = true; $wgGroupPermissions['aplications']['move'] = false; $wgGroupPermissions['aplications']['read'] = true;
I'm following the instructions found on the ./includes/Defaultsettings.php file and I'm not certain about the line that I added:
$wgGroupPermissions = array ("Main Page", "Special:Blockip", "Special:Userlogin" );
I want that the Aplications Group only view and edit the Main Page, Special:Blockip and the Special:Userlogin page.
There's no support for anything like that. All pages are visible to everyone at all times, unless you set up the global read whitelist, which applies equally to those without read permssiion. If you are stuck there, you can't edit or perform any other actions than view of those whitelisted pages.
MediaWiki is *not* designed for complex restricted read access. If you require this you should use software designed for it.
-- brion vibber (brion @ pobox.com)
Thanks Brion for your Help. The only thing that I don`t undestand is Why the GRoup thing exist??? hehe
But, Thanks anyway. =D
Brion Vibber wrote:
Jeferson Pessoa Santana wrote:
I installed the mediawiki 1.5rc4 and I'm having some problems with the User Rights Management feature. I added some groups in the Localsetting.php but I don't know how to restrict some pages for these groups. Example:
I added these lines to my LocalSettings.php:
$wgGroupPermissions = array ("Main Page", "Special:Blockip", "Special:Userlogin" );
Well, that's going to break everything right there. Why did you do that?
$wgGroupPermissions['aplications']['edit'] = true; $wgGroupPermissions['aplications']['move'] = false; $wgGroupPermissions['aplications']['read'] = true;
I'm following the instructions found on the ./includes/Defaultsettings.php file and I'm not certain about the line that I added:
$wgGroupPermissions = array ("Main Page", "Special:Blockip", "Special:Userlogin" );
I want that the Aplications Group only view and edit the Main Page, Special:Blockip and the Special:Userlogin page.
There's no support for anything like that. All pages are visible to everyone at all times, unless you set up the global read whitelist, which applies equally to those without read permssiion. If you are stuck there, you can't edit or perform any other actions than view of those whitelisted pages.
MediaWiki is *not* designed for complex restricted read access. If you require this you should use software designed for it.
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 14/09/05, Jeferson Pessoa Santana jeferson@dgx.com.br wrote:
Thanks Brion for your Help. The only thing that I don`t undestand is Why the GRoup thing exist??? hehe
As a more flexible way of granting special permissions (previously there was a hard-coded "sysop" group and later also "bureaucrat") - things like protecting a page, one-click reverts, acessing certain special pages, blocking and unblocking users, deleting and undeleting pages, etc. Nothing to do with restricting access to different pages.
"Wiki is a great software, but we need more than this."
Your tone indicates that you expect us to code to meet the needs of your company. That's not the case; MediaWiki is developed to serve the needs of the Wikimedia Foundation and it's web sites, not the third parties which use it. It is made available under the GPL in the hope that it will be useful, but it is not guaranteed to be useful for every situation.
There are, I believe, plenty of other document management solutions out there if you want something more sophisticated that this. You have to understand that MediaWiki *is* designed for Wikimedia, and Wikimedia is about making information available, not locking it up, so preventing read access to articles isn't something the software is ever likely to do.
Rob Church
On 14/09/05, Rowan Collins rowan.collins@gmail.com wrote:
On 14/09/05, Jeferson Pessoa Santana jeferson@dgx.com.br wrote:
Thanks Brion for your Help. The only thing that I don`t undestand is Why the GRoup thing exist??? hehe
As a more flexible way of granting special permissions (previously there was a hard-coded "sysop" group and later also "bureaucrat") - things like protecting a page, one-click reverts, acessing certain special pages, blocking and unblocking users, deleting and undeleting pages, etc. Nothing to do with restricting access to different pages.
-- Rowan Collins BSc [IMSoP] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
There's no support for anything like that. All pages are visible to everyone at all times, unless you set up the global read whitelist, which applies equally to those without read permssiion. If you are stuck there, you can't edit or perform any other actions than view of those whitelisted pages.
MediaWiki is *not* designed for complex restricted read access. If you require this you should use software designed for it.
or patch MediaWiki with this : http://meta.wikimedia.org/wiki/Page_access_restriction_with_MediaWiki
:)
Jej
-- brion vibber (brion @ pobox.com)
I had already installed this patch a few weeks ago. However one department can not see the wiki topics of another department. Only the "restrict" or "view restrict" groups can see the restricted pages with the Page_access_restriction patch and this is not what my company wants. Wiki is a great software, but we need more than this.
Thanks JeJ =D
Jej wrote:
There's no support for anything like that. All pages are visible to everyone at all times, unless you set up the global read whitelist, which applies equally to those without read permssiion. If you are stuck there, you can't edit or perform any other actions than view of those whitelisted pages.
MediaWiki is *not* designed for complex restricted read access. If you require this you should use software designed for it.
or patch MediaWiki with this : http://meta.wikimedia.org/wiki/Page_access_restriction_with_MediaWiki
:)
Jej
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org