http://entwicklung/mediawiki/index.php/testnamespace:Restriction_Test
Here is my Part of the LocalSettings.php where i've done this: 221 # create Test-ExtraNamespace: 222 $wgExtraNamespaces = 223 array(100 => "testnamespace", 224 101 => "testnamespace_talk" 225 ); 226 227 # restrict access to this extra-namespace 228 $wgRestrictedNamespaces = 229 array(100 => "testgroup", 230 101 => "testgroup" 231 ); 232 # allow only 'sysop' and 'testgroup' for restrictedNamespace 'testnamespace' 233 $wgGroupPermissions['sysop']['testgroup'] = true; 234 $wgGroupPermissions['testgroup']['testgroup'] = true; 235 236 $wgGroupPermissions['testgroup']['read'] = true; 237 #$wgGroupPermissions['testgroup' ]['edit'] = false; 238
Then, you can create a Page using the following link:
[[testnamespace:foobar]]
After this, the page 'foobar' can be viewed / edited only by the groupes you defined above.
Regards,
Torsten
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]Im Auftrag von Gabriele Barberi Gesendet: Dienstag, 29. November 2005 14:06 An: mediawiki-l@Wikimedia.org Betreff: [Mediawiki-l] Userspaces and groups permissions
Hello, I'm running mediawiki 1.5.0 and I would like to have four groups (sysop, bureaucrat, developers, contributors) where: - sysop has full privileges; - bureaucrat has almost full privileges (can create new users, edit and add new pages, but cannot modify pages owned by sysops); - developers can add new pages and modify them but only on their own projects; - contributors can only modify some pages.
In order to allow future upgrades I prefer not to install patches not officially provided by mediawiki.org.
Could someone tell me how to do it?
I would also like to create new projects/namespaces with subpages, but the documentation on meta.mediawiki.org is not clear about it. How should I do it?
Please save me...
Thanks in advance and best regards Gabriele _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 11/29/05, Schmidt, Torsten torsten.schmidt@tecdoc.net wrote:
http://entwicklung/mediawiki/index.php/testnamespace:Restriction_Test
Here is my Part of the LocalSettings.php where i've done this: 221 # create Test-ExtraNamespace: 222 $wgExtraNamespaces = 223 array(100 => "testnamespace", 224 101 => "testnamespace_talk" 225 ); 226 227 # restrict access to this extra-namespace 228 $wgRestrictedNamespaces = 229 array(100 => "testgroup", 230 101 => "testgroup" 231 ); 232 # allow only 'sysop' and 'testgroup' for restrictedNamespace 'testnamespace' 233 $wgGroupPermissions['sysop']['testgroup'] = true; 234 $wgGroupPermissions['testgroup']['testgroup'] = true; 235 236 $wgGroupPermissions['testgroup']['read'] = true; 237 #$wgGroupPermissions['testgroup' ]['edit'] = false; 238
Then, you can create a Page using the following link:
[[testnamespace:foobar]]
After this, the page 'foobar' can be viewed / edited only by the groupes you defined above.
Regards,
Torsten
I've tried this and it doesn't work. I've also modified it and also tried the example given in http://meta.wikimedia.org/wiki/Hidden_pages .. nothing works.
Any user can edit and see any document in that namespace.
Dear Sy Ali,
I had the same problem until I noticed that there is a link to a patch at bug 1924, embedded in the Possible_solution (Namespace-Based Restriction) section of Hidden Pages.
http://bugzilla.wikimedia.org/show_bug.cgi?id=1924
I modified the wiki so that it is more obvious. Check out:
http://meta.wikimedia.org/wiki/Hidden_pages#Possible_solution_. 28Namespace-Based_Restriction.29
If this works, you might want to delete your comments below on that page:
* Patching what? * This doesn't work for me. -- Sy / (talk) 15:31, 16 December 2005 (UTC)
Good luck!
Maurice
On Dec 15, 2005, at 15:39, Sy Ali wrote:
I've tried this and it doesn't work. I've also modified it and also tried the example given in http://meta.wikimedia.org/wiki/Hidden_pages .. nothing works.
Any user can edit and see any document in that namespace.
On 11/29/05, Schmidt, Torsten torsten.schmidt@tecdoc.net wrote:
http://entwicklung/mediawiki/index.php/testnamespace:Restriction_Test
Here is my Part of the LocalSettings.php where i've done this: 221 # create Test-ExtraNamespace: 222 $wgExtraNamespaces = 223 array(100 => "testnamespace", 224 101 => "testnamespace_talk" 225 ); 226 227 # restrict access to this extra-namespace 228 $wgRestrictedNamespaces = 229 array(100 => "testgroup", 230 101 => "testgroup" 231 ); 232 # allow only 'sysop' and 'testgroup' for restrictedNamespace 'testnamespace' 233 $wgGroupPermissions['sysop']['testgroup'] = true; 234 $wgGroupPermissions['testgroup']['testgroup'] = true; 235 236 $wgGroupPermissions['testgroup']['read'] = true; 237 #$wgGroupPermissions['testgroup' ]['edit'] = false; 238
Then, you can create a Page using the following link:
[[testnamespace:foobar]]
After this, the page 'foobar' can be viewed / edited only by the groupes you defined above.
Regards,
Torsten
On 12/18/05, Maurice Rabb WikiAdmin@personalbacon.com wrote:
Dear Sy Ali,
I had the same problem until I noticed that there is a link to a patch at bug 1924, embedded in the Possible_solution (Namespace-Based Restriction) section of Hidden Pages.
http://bugzilla.wikimedia.org/show_bug.cgi?id=1924
I modified the wiki so that it is more obvious. Check out:
http://meta.wikimedia.org/wiki/Hidden_pages#Possible_solution_. 28Namespace-Based_Restriction.29
Thanks for leading me down the right road. I don't want to go so far as to work with hackish solutions. To get this functionality, I'll have to wait for a mediawiki fork which does have security.. since like many others I use mediawiki as a cms.
I can think of a alternate method which would rewrite certain URLs into protected "directories" which would work fairly well, but unfortunately I don't nor will I ever understand enough to implement it myself.
mediawiki-l@lists.wikimedia.org