From c30aad4fba3c11177ab79bb53b17e107684cabc8 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 24 Jun 2005 13:59:55 +0000 Subject: [PATCH] Removed "ja" and "nein" attributes from publicVisible. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@857 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index ec70c7531..32ff64268 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -117,6 +117,12 @@ class user extends plugin $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 */ @@ -435,7 +441,7 @@ class user extends plugin preg_match('/true/i', $this->config->current['GOVERNMENTMODE'])){ $smarty->assign("governmentmode", "true"); $ivbbmodes= array("nein", "ivbv", "testa", "ivbv,testa", "internet", - "internet,ivbv", "internet,testa", "internet,ivbv,testa", "ja"); + "internet,ivbv", "internet,testa", "internet,ivbv,testa"); $smarty->assign("ivbbmodes", $ivbbmodes); foreach ($this->govattrs as $val){ $smarty->assign("$val", $this->$val); @@ -601,6 +607,11 @@ class user extends plugin } } + /* Remove attribute if set to "nein" */ + if ($this->publicVisible == "nein"){ + $this->attrs['publicVisible']= array(); + } + } /* Special handling for attribute userCertificate needed */ -- 2.30.2