D
D
Dmitry Kalinichev2016-04-05 15:05:37
Access rights
Dmitry Kalinichev, 2016-04-05 15:05:37

How to restrict access to mediawiki for groups of users?

Good day.
Given:
mediawiki lies on an external, Internet-accessible server. 2. Users are divided into categories or groups (SA - sys.admins, SD - service desk, SI - system engineers, R - retail network workers) It is necessary to make sure that users of the SD group can view everything except SI, SA - only category materials CA, SI - materials SI and CA, P - only materials of category P. Ideally, the "bureaucrats" should also be divided into groups SA, SD, SI, R and they could create and edit materials only for their own groups, and viewing other groups by user rights, i.e. A "bureaucrat" from the SD group can create material only for the SD group, but by going to the CA material, he can only view it, and when going to the SI material, the system will tell him that access is denied.
Task:
1. Make the wiki inaccessible to "left users" to prohibit anyone from editing pages, except for specially trained "bureaucrats".
How I implemented task number 1
# Prohibition of self-registration of new users:
$wgGroupPermissions['*']['createaccount'] = false;
# Disable anonymous editing:
$wgGroupPermissions['*']['edit'] = false;
#Prohibition on reading
$wgGroupPermissions['*']['read'] = false;
#Prohibit user from editing
$wgGroupPermissions['user']['edit'] = false;
#Admin permission to edit
$wgGroupPermissions['sysop']['edit'] = true;
#Bureaucrat editing permission
$wgGroupPermissions['bureaucrat']['edit'] = true;
How I see (I suppose) the solution of problem No. 2
On the left, in the side menu, links SA, SD, SI, R are created after that ?somehow? you need to set each link its own rights for the above task. And after that, the material created in the subsection of one of the groups will have the rights (superstructures) of the upper directory. But here's how to do it, or come up with another solution to this problem, if there is one at all.
Can anyone share their experience and advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UksusoFF, 2016-04-05
@UksusoFF

mediawiki.ru/forum/threads/423
For example different Namespace with Extension:Lockdown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question