HelloWorld
HelloWorld

Reputation: 190

Restricting read access to MediaWiki pages based on category and group

I have a page with this content, which is a page intended to be accessible only for users in the "sales" group. Even for reading.

This page contains content for sales.

<!-- Tag for AccessControl -->
<accesscontrol>Sales</accesscontrol>

[[Category:Sales]]

The page is in the Sales category. All pages in this category should be accessed only by "sales" group. But it's not working. No user can read that page now , even the ones in "sales". Help me figure it out please.

ChatGPT suggested a very long configuration including a $wgAccessControlTagPermissions variable, which I haven't even found in the official MediaWiki docs. I guess it's a setting from an old version of mediawiki, I don't know where chatGPT pulled that from.

Upvotes: 0

Views: 48

Answers (1)

Nemo
Nemo

Reputation: 2572

As mentioned in the comments and stated in the docs as Security issues with authorization extensions, MediaWiki doesn't officially support ACL on read permissions.

Things got better in recent releases with MediaWiki core and the new PHP parser, but you should probably not use an extension and you should definitely not configure it with settings invented by a language model.

Upvotes: 0

Related Questions