From c041f82a7a1177ca1d113c65b7b238f04a4be41e Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 27 Nov 2009 16:43:06 +0000 Subject: [PATCH] Added fix to allow removal of login restrictions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14842 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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() { -- 2.30.2