Commit e7f0631a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(core) improved userNoAuth to avoid crashes

issue #5854
Showing with 6 additions and 6 deletions
+6 -6
......@@ -31,16 +31,16 @@ class userinfoNoAuth extends userinfo
{
function __construct($context = 'fake')
{
$this->cn = $context;
$this->dn = $context;
$this->uid = $context;
$this->ip = $_SERVER['REMOTE_ADDR'];
parent::__construct($context);
/* This fake user have all rights */
$this->ignoreACL = TRUE;
}
/* Initialize ACL_CACHE */
$this->reset_acl_cache();
function loadLDAPInfo()
{
$this->cn = $this->dn;
$this->uid = $this->dn;
}
function getBase()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment