开发者

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

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 a开发者_StackOverflow社区ble to edit this particular page only.


I think you're looking for SimpleSecurity.


I use extensions ImprovedAccessControlas well as PermissionACL.

Both work well for page by page, user by user, and namespace by namespace control.


This is an old question, MediaWiki has evolved and there appeared the "Access_Control_List" extension. This nice page may help anyone who's still looking for the answer: https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions

Best regards!

/Ángel


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.


Not directly, there's plenty of hacks/extensions that try to do the same thing.

See the Extensions page at the MediaWiki webpage:

MediaWiki Extensions


SimpleSecurity does not work anymore with 1.21.1...

What other methods are there to prevent reading on specific page or page of an category?

AccessControl, PreventPage and Lockdown are also not very good extensions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜