A
A
Alexey2017-06-15 14:20:34
Wiki engines
Alexey, 2017-06-15 14:20:34

How to allow a normal user to view a specific page?

I have a small private wiki and I want registered users to be able to read certain articles.
If you use that, the user will be prohibited from everything (this is necessary). But I want to give this user access to a specific article. How can this be implemented? PS I tried the LockDown plugin, but it only limits the rights, ie. if the user had no rights, then it won't.$wgGroupPermissions['user']['read'] = false;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UksusoFF, 2017-06-15
@Alexeee

So users will be able to read all the articles, but guests will not:

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

https://www.mediawiki.org/wiki/Manual:User_rights
You can also close access to a specific namespace: https://www.mediawiki.org/wiki/Manual:$wgNamespace...
And add custom groups: https ://www.mediawiki.org/wiki/Manual:User_rights#...
In principle, after playing around with these settings, you can implement almost everything you need.
If not, then you should look at these extensions: https://www.mediawiki.org/wiki/Category:Page_speci...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question