Mobile app version of vmapp.org
Login or Join
Speyer207

: Is there a permission in MediaWiki to allow a user to edit discussions but not pages? Is there a permission in MediaWiki that allows a user to edit a discussion but not a page? That would

@Speyer207

Posted in: #Mediawiki #Permissions

Is there a permission in MediaWiki that allows a user to edit a discussion but not a page?

That would enable anyone to, say, express a view, but only certain users (e.g. those with a confirmed email) to edit a page.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Speyer207

1 Comments

Sorted by latest first Latest Oldest Best

 

@Rivera981

There is no default permission, but the MediaWiki extension TalkRight seems to do what you request. You use it by installing the extension and adding the following to LocalSettings.php.

$wgGroupPermissions['user']['edit'] = false; // Start by preventing users from editing anything
$wgGroupPermissions['user']['talk'] = true; // Let users edit talk pages
$wgGroupPermissions['emailconfirmed']['edit'] = true; // Let emailconfirmed users edit all pages


I'm not sure how well maintained that extension is or will be, so you should be able to do the same without extensions. (Note that I am unable to test any of this code, but it should work.) This also goes in LocalSettings.php.

$wgNamespaceProtection[NS_MAIN_TALK] = array('edittalk');

$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['edittalk'] = true;
$wgGroupPermissions['emailconfirmed']['edit'] = true;


See also the MediaWiki docs for $wgGroupPermissions and $wgNamespaceProtection.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme