Background | |
Often, you want to create a wiki that can only be seen by people who have an account on it. One way to do this of course, is to put the wiki site behind some sort of a firewall. But if it's not an option for you, there are two other ways of doing it. Recipe 1: Setting permissions so that anonymous can't do much.
|
Recipe 1: Setting permissions so that anonymous can't do much. | |
Here are the steps:
So it's best to disable self-registration and email validation:
|
Recipe 2: "closing" the site for maintenance | |
WARNING: I have found that with this recipe, there are occasionally problems where you can't login at all! See the section below about Can't login at all Here are the steps:
If your registration procedure is designed in such a way that people can't register without being vetted by an admin, then you can simply set this permission on Anonymous. However, if anybody can register without being vetted by an admin, then you probably need to create another group, say, TrustedUsers, and grant tiki_p_access_closed_site to that group. To grant tiki_p_access_closed_site permission to a group:
|
Can't login at all | |
For reasons that I don't understand, if you use this recipe, you may occasionally run into trouble where the login screen stops recognizing legal users, and it looks like nobody, including admins, can access the site anymore. This seems to happen on servers where there are more than one tiki sites running. Also, it seems to happen more frequently (but not exclusively) after upgrades to the tiki software. But fear not! You can fix this problem by running tiki-install.php, and upgrading the database. |
Problem validating new users | |
Another problem which I have occasionally experienced with this recipe is that new users can't validate their account. That's because they can't access the validation URL they received by email without logging in, and they can't login before they have validated their account.
|
See also | |