summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd74053)
raw | patch | inline | side by side (parent: cd74053)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Feb 2006 08:08:34 +0000 (08:08 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Feb 2006 08:08:34 +0000 (08:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2666 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index 1666d5759cd1388ba2d6ba607ad82c90a3fd35be..d1eecf77eb57691e558c353c3eebbf076a45d6b8 100644 (file)
'dn' from LDAP */
function user ($config, $dn= NULL)
{
- /* Configuration is fine, allways */
$this->config= $config;
+ /* Configuration is fine, allways */
+ if ($this->config->current['GOVERNMENTMODE']){
+ $this->attributes=array_merge($this->attributes,$this->govattrs);
+ }
/* Load base attributes */
plugin::plugin ($config, $dn);
- /* Load government mode attributes */
if ($this->config->current['GOVERNMENTMODE']){
+ /* Fix public visible attribute if unset */
+ if (!isset($this->attrs['publicVisible'])){
+ $this->publicVisible == "nein";
+ }
+ }
+ /* Load government mode attributes */
+ if ($this->config->current['GOVERNMENTMODE']){
/* Copy all attributs */
foreach ($this->govattrs as $val){
if (isset($this->attrs["$val"][0])){
$this->$val= $this->attrs["$val"][0];
}
}
-
- /* Fix public visible attribute if unset */
- if (!isset($this->attrs['publicVisible'])){
- $this->publicVisible == "nein";
- }
-
}
/* Create me for new accounts */
}
/* Check phone numbers */
- if (!is_phone_nr($this->homePhone)){
- $message[]= _("The field 'Phone' contains an invalid phone number.");
- }
if (!is_phone_nr($this->telephoneNumber)){
$message[]= _("The field 'Phone' contains an invalid phone number.");
}