From: hickert Date: Fri, 27 Nov 2009 16:43:06 +0000 (+0000) Subject: Added fix to allow removal of login restrictions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c041f82a7a1177ca1d113c65b7b238f04a4be41e;p=gosa.git Added fix to allow removal of login restrictions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14842 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 93178928e..e6ab4722e 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -234,13 +234,19 @@ class user extends plugin if (isset ($this->attrs['gender'])){ $this->gender= strtoupper($this->attrs['gender'][0]); } + + // Get login restrictions + if(isset($this->attrs['gosaLoginRestriction'])){ + $this->gosaLoginRestriction =array(); + for($i =0;$i < $this->attrs['gosaLoginRestriction']['count']; $i++){ + $this->gosaLoginRestriction[] = $this->attrs['gosaLoginRestriction'][$i]; + } + } $this->orig_base = $this->base; } - - /* execute generates the html output for this node */ function execute() {