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

Fixes #4239 Moved ReadOnlyLDAPAttribute to core

parent a3409570
......@@ -895,6 +895,7 @@ class FakeAttribute extends Attribute
/*! \brief This class allow to display an attribute.
*
* It can be used to display an attribute value the user is never allowed to modify.
* (But FD might edit it)
*/
class DisplayLDAPAttribute extends Attribute
{
......@@ -915,6 +916,19 @@ class DisplayLDAPAttribute extends Attribute
}
}
/*! \brief This class allow to display an attribute.
*
* It can be used to display an attribute value the user and FD are never allowed to modify.
*/
class ReadOnlyLDAPAttribute extends DisplayLDAPAttribute
{
function fillLdapValue (&$attrs)
{
/* Remove crap made by plugin */
unset($attrs[$this->getLdapName()]);
}
}
/*! \brief This class allow to display an attribute.
*
* It can be used to display an attribute value the user is never allowed to modify.
......
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