Code

Updated ACL check for groups.
[gosa.git] / plugins / admin / departments / main.inc
index ac2b3e9f18e72130836b8bb781bb7bf5f0d63bb1..5db627873ebe0dfa0a7b684d204147f52c2ae90f 100644 (file)
@@ -31,6 +31,9 @@ if ($remove_lock){
                $_SESSION['department']= new departmentManagement($config, $ui);
        }
        $department= $_SESSION['department'];
+       
+       /* Show and save dialog */
+       $department->save_object();
        $output= $department->execute();
 
        /* Page header*/
@@ -46,12 +49,9 @@ if ($remove_lock){
                sess_del ('department');
        }
 
-       /* Show and save dialog */
-       $department->save_object();
-
        $display.= $output;
-
        $_SESSION['department']= $department;
+       $config = $department->config;
 }
 
 ?>