Code

Added fix to allow removal of login restrictions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Nov 2009 16:43:06 +0000 (16:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Nov 2009 16:43:06 +0000 (16:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14842 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index 93178928e48995916b25d42f63721592448b9a2a..e6ab4722eddd0ba26a41835924d685a92046673a 100644 (file)
@@ -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()
   {