Code

Fixed sudoGeneric
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 11:07:40 +0000 (11:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 May 2010 11:07:40 +0000 (11:07 +0000)
-The lists were all empty while creating new sudo objects

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18510 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc

index 3ff8d97bc4e25fc348c0797f160f70b484ee92ab..ae7aa21c7814590cf07711e7eed103e8b241ccd6 100644 (file)
@@ -125,6 +125,12 @@ class sudo extends plugin
         /* Call parent execute */
         plugin::execute();
 
+        // Set list ACLs
+        foreach(array('sudoUser','sudoCommand','sudoHost','sudoRunAs') as $l){
+            $ll = $l."List";
+            $this->$ll->setAcl($this->getacl($l));
+        }
+
         // Handle trust mode dialog
         $trustModeDialog = $this->trustModeDialog->execute();
         if($this->trustModeDialog->trustSelect){