spr1te
spr1te

Reputation: 89

Mediawiki - only a certain user group can read / access

I'm setting up a wiki at the moment and I want it to be completely private and only be accessible for a specific user group.

My first step was:

$wgGroupPermissions['*']['read']    = false;

that way no one (but admins I guess) should be able to read any content of the Wiki.

After that I created some groups to allow read only, read edit and creating allowance etc.

Sadly I tried to register a new test account and I could still read the main wiki page even though I changed the permission that no one should be able to read it except the user groups I created.

Do I miss something?

Upvotes: 4

Views: 1378

Answers (2)

Dylan
Dylan

Reputation: 305

You need to add $wgGroupPermissions['user']['read'] = false; as * still allows visitors in the users group to read.

Upvotes: 1

wmat
wmat

Reputation: 468

That method specifically allows Users that have created accounts to view the wiki. See this manual page: https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_viewing_of_all_pages, it's the second Warning. So you may want to also restrict account creation.

Upvotes: 0

Related Questions