Thread:Project:Support desk/How to allow users to edit some pages/reply (2)

Hi,

Thanks for your response.

I have tried to allow editing of pages through custom namespace but it seems to not to work. Below is my code /* To allows user to create and edit "Request" namespace */ // Define constants for my additional namespaces. define("NS_REQUEST", 508); // This MUST be even. define("NS_REQUEST_TALK", 509); // This MUST be the following odd integer. // Add namespaces. $wgExtraNamespaces[NS_REQUEST] = "Request"; $wgExtraNamespaces[NS_REQUEST_TALK] = "Request_talk"; // Note underscores in the namespace name. $wgContentNamespaces[] = NS_REQUEST;

$wgNamespaceProtection[NS_REQUEST] = array( 'editrequest' ); // permission "editrequest" required to edit the foo namespace $wgNamespacesWithSubpages[NS_REQUEST] = true;           // subpages enabled for the foo namespace

$wgNamespacePermissionLockdown[NS_REQUEST]['*'] = array('sysop','user'); $wgNamespacePermissionLockdown[NS_REQUEST_TALK]['*'] = array('sysop','user');
 * 1) grant all rights to these groups, block the rest
 * 1) Start with assigning the default permissions from group "user"

$wgGroupPermissions['sysop']['Request'] = true;     // permission "Request" granted to users in the "sysop" group $wgGroupPermissions['user']['Request'] = true;     // permission "Request" granted to users in the "user" group

$wgGroupPermissions['Request']['edit'] = true; $wgGroupPermissions['Request']['createpage'] = true;

I want to allow the creation and editing of page permission to users who are in the request group. however, when I tried to create a page starting with Request:ABC, it tells me permission denied. why is that so?

Thanks for your response!