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

Hello, I redefined my whole thing to as follows. I am trying to allow the "user" group to ONLY be able to create and edit pages that starts with "Requests:(pageTitle)". Any other titles that do not start with "Requests:", they will not be able to do it.

define("NS_REQUEST", 508); define("NS_REQUEST_TALK", 509); $wgExtraNamespaces = array(508 => "Requests",         509 => "Requests_talk",    ); $wgNamespaceProtection[NS_REQUEST]     = array( 'requests-edit' ); $wgNamespaceProtection[NS_REQUEST_TALK] = array( 'requests-talk-edit' ); //$wgGroupPermissions['Requests']['requests-edit'] = true; //only Requests can edit pages in the Request namespace //$wgGroupPermissions['Requests']['requests-talk-edit'] = true; //Requests can edit pages in the Request_talk namespace //$wgGroupPermissions['Requests']['edit'] = true; //$wgGroupPermissions['Requests']['createpage'] = true;

$wgGroupPermissions['user']['requests-edit'] = true; //only user can edit pages in the Request namespace $wgGroupPermissions['user']['requests-talk-edit'] = true; //user can edit pages in the Request_talk namespace

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

$wgNamespaceProtection[NS_MAIN] = array( 'edit-main' ); // Restrict Requests group to only create pages starting with Requests:pageTitle

$wgGroupPermissions['user']['edit'] = true; //true to allow them to create pages that start with Requests:pageTitle only $wgGroupPermissions['user']['createpage'] = true; //true to allow them to create pages that start with Requests:pageTitle only

/* Allows these user group to create and edit main pages */ $wgGroupPermissions['Editor']['edit-main'] = true; $wgGroupPermissions['sysop']['edit-main'] = true;

The above is what I implemented. Could you advise if I am on the right track? Really appreciated your help! Thanks so much!