Wiki source code of Restrict a Wiki to Administrators
Last modified by Eleni Cojocariu on 2026/10/19 22:03
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Close a wiki to everyone but its administrators, registered users included. The rights are allowed to the administrators alone, which, as [[Rights Resolution>>doc:documentation.xs.admin.rights.rights-resolution.WebHome]] explains, refuses them to everyone the wiki does not name. | ||
| 2 | |||
| 3 | 1. [[Administer your wiki>>doc:documentation.xs.admin.base.administer-wiki.WebHome]]. | ||
| 4 | 1. Select "Users & Rights", and then "Rights". | ||
| 5 | 1. On the "Groups" tab, allow ##XWikiAdminGroup## "View" and "Register" (a wiki in its installed state already grants it the others) and clear every right of ##XWikiAllGroup##, the way [[Set the Rights of a Wiki>>doc:documentation.xs.admin.rights.set-wiki-rights.WebHome]] describes.((( | ||
| 6 | {{image reference="admins-rights-grid.png" size="extra" alt="The rights grid of the wiki administration, with every right allowed for XWikiAdminGroup and none for XWikiAllGroup"/}} | ||
| 7 | ))) | ||
| 8 | 1. Select the two check boxes below the grid, "Prevent unregistered users from viewing pages, regardless of the page rights" and the one for editing, so that no page can let a visitor in, as [[Restrict the Wiki to Registered Users>>doc:documentation.xs.admin.rights.restrict-wiki-registered-users.WebHome]] describes.((( | ||
| 9 | {{image reference="prevent-unregistered-boxes.png" size="extra" alt="The two selected check boxes preventing unregistered users from viewing and editing pages"/}} | ||
| 10 | ))) | ||
| 11 | 1. Sign in as a registered user who is not an administrator, and check that the wiki refuses them.((( | ||
| 12 | {{image reference="registered-user-refused.png" size="extra" alt="The error telling a signed-in user that they are not allowed to view this page"/}} | ||
| 13 | ))) |