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:
parent
27c15b5d5c
commit
0e53545242
|
@ -139,8 +139,9 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
|
||||||
|
|
||||||
function acl(&$event, $param) {
|
function acl(&$event, $param) {
|
||||||
global $conf;
|
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');
|
$existingLines = file(DOKU_CONF.'acl.auth.php');
|
||||||
$newLines = array();
|
$newLines = array();
|
||||||
// ACL
|
// ACL
|
||||||
|
|
Loading…
Reference in a new issue