Talk:NamespacePermissions Extension: Difference between revisions
Content deleted Content added
Where is the mod file? |
Requesting clarification and finding errors |
||
Line 1:
== Requesting clarification and finding errors ==
Hello all,
** All I wanted is to do the followings:
**** Disable any anonymous access altogether
**** "Logged in" users have "READONLY" access and even can't use Talk pages.
**** Create bunch of custom namespaces (e.g. MyNS1, MyNS2, etc.)
**** Use NameSpacePermission Extension to make it automatically create groups (nsMyNS1RW, nsMyNS1RO, nsMyNS2RW, nsMyNS2RO, etc.)
**** As soon as I add a user into one of the groups (e.g. Add user1 to nsMyNS1RW), I expect that user1 can create/Manage any article start with "MyNS1:" (e.g. MyNS1:Test Page, MyNS1:The Page can be only accessible by the users in nsMyNS1RW or nsMyNS1RO group)
** I simply placed NamespacePermissions.php under .\extensions folder.
** Updated the localsettings as following:
<PRE>
// Create Custom Namespaces
$wgExtraNamespaces[1001] = "MyNS1";
$wgExtraNamespaces[1002] = "MyNS1_Talk";
$wgExtraNamespaces[2001] = "MyNS1";
$wgExtraNamespaces[2002] = "MyNS1_Talk";
// Overriding Implicit group for all visitors
$wgGroupPermissions['*' ]['createaccount'] = false; //prevents new registrations from anonymous users
//$wgGroupPermissions['*' ]['read'] = false; // Optional depending on the security requirement
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;
// Double overriding on Commandline mode
if ($wgCommandLineMode) {
$wgGroupPermissions['*']['read'] = true;
}
# Pages anonymous (not-logged-in) users may see
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css", "*Support*" );
$wgDisableAnonTalk = true; # no discussion pages for anonyous users
// Overriding Implicit group for all logged-in accounts READONLY.
$wgGroupPermissions['user' ]['move'] = false;
$wgGroupPermissions['user' ]['read'] = true; // <--
$wgGroupPermissions['user' ]['edit'] = false;
$wgGroupPermissions['user' ]['createpage'] = false;
$wgGroupPermissions['user' ]['createtalk'] = false;
$wgGroupPermissions['user' ]['upload'] = true;
$wgGroupPermissions['user' ]['reupload'] = true;
$wgGroupPermissions['user' ]['reupload-shared'] = true;
$wgGroupPermissions['user' ]['minoredit'] = false;
// The following need to be defined after $wgExtraNamespaces
require_once( "extensions/NamespacePermissions.php" );
</PRE>
**With these settings, somehow user1 is simply treated as just "user" and have readonly for everything including MyNS1 even though user1 is on nsMyNS1RW group.
**Can you tell me what is wrong with this?
Thanks in advance.
[[User:Ypae|Ypae]] 04:24, 7 February 2007 (UTC)
== Problem "Cannot modify header information..." ==
|