How can I add per page permissions to a user in MediaWiki?

后端 未结 6 2312
夕颜
夕颜 2021-02-12 23:49

In MediaWiki, how can a user be given permission to edit only certain pages? This way, the administrator can create a page for the user and the user will be able to edit this pa

6条回答
  •  遇见更好的自我
    2021-02-13 00:36

    I tried SimpleSecurity on wiki 1.17.0 and it works ok. But you are limited on 'Category' and 'Namespace' so you can't restrict some user to specific page.

    The only solution I see is that you make categories and subcategories and add groups and restrict with Category and Groups. Add users to different groups and add to your LocalSettings.php:

    $wgPageRestrictions['Category:Our_people']['edit'] = array('sysop', 'management');

    I also looked other restriction extensions on http://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions but a lot of them are not maintained anymore and some require that you edin core.... SimpleSecurity is very straighforward.

提交回复
热议问题