From 0e53545242f0f7c1d61211ab6fea8fde9d6b422b Mon Sep 17 00:00:00 2001 From: Simon DELAGE Date: Sat, 27 Jun 2015 16:27:51 +0200 Subject: [PATCH] Workaround for issue #10 ACL function shouldn't do anything when user is not authentified (was previously triggering ACL update message) --- action.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.php b/action.php index b7551c4..52d2cc1 100644 --- a/action.php +++ b/action.php @@ -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