Workaround for issue #10

ACL function shouldn't do anything when user is not authentified (was
previously triggering ACL update message)
This commit is contained in:
Simon DELAGE 2015-06-27 16:27:51 +02:00
parent 27c15b5d5c
commit 0e53545242
1 changed files with 3 additions and 2 deletions

View File

@ -139,8 +139,9 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
function acl(&$event, $param) {
global $conf;
if ((!$this->getConf('no_acl')) && ($conf['useacl'])) {
// if ((!$this->getConf('no_acl')) && ($conf['useacl'])) {
if ((!$this->getConf('no_acl')) && ($conf['useacl']) && (isset($_SERVER['REMOTE_USER']))) {
$existingLines = file(DOKU_CONF.'acl.auth.php');
$newLines = array();
// ACL