diff options
author | Willi Eggeling <thewilli@gmail.com> | 2017-08-31 00:39:15 +0200 |
---|---|---|
committer | Willi Eggeling <thewilli@gmail.com> | 2017-09-03 11:46:49 +0200 |
commit | 27e21231e168e5a2a89563b2538a4f86df24e582 (patch) | |
tree | 851c51115ce4d01dd30e57a048f8ed8b2a3c4e1b /application/config/ConfigManager.php | |
parent | 96a1c79456b27892b9221707803f29585565b9dc (diff) | |
download | Shaarli-27e21231e168e5a2a89563b2538a4f86df24e582.tar.gz Shaarli-27e21231e168e5a2a89563b2538a4f86df24e582.tar.zst Shaarli-27e21231e168e5a2a89563b2538a4f86df24e582.zip |
added option to redirect all anonymous users to login page
- new setting *force_login* added and documented
- if both, *force_login* and *hide_public_links* are set to true, all requests
(except for the feeds) are redirected to the login page
Diffstat (limited to 'application/config/ConfigManager.php')
-rw-r--r-- | application/config/ConfigManager.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index fdd5b3d7..32f6ef6d 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php | |||
@@ -327,6 +327,7 @@ class ConfigManager | |||
327 | 327 | ||
328 | $this->setEmpty('privacy.default_private_links', false); | 328 | $this->setEmpty('privacy.default_private_links', false); |
329 | $this->setEmpty('privacy.hide_public_links', false); | 329 | $this->setEmpty('privacy.hide_public_links', false); |
330 | $this->setEmpty('privacy.force_login', false); | ||
330 | $this->setEmpty('privacy.hide_timestamps', false); | 331 | $this->setEmpty('privacy.hide_timestamps', false); |
331 | // default state of the 'remember me' checkbox of the login form | 332 | // default state of the 'remember me' checkbox of the login form |
332 | $this->setEmpty('privacy.remember_user_default', true); | 333 | $this->setEmpty('privacy.remember_user_default', true); |