Code

Fixed lock
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 08:28:26 +0000 (08:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Dec 2005 08:28:26 +0000 (08:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2370 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index 55e8499b1ef067f51692e48c21cb6685af0ca6ba..8a1e69e155be93fadfabab8c5b0b56379e8f20c1 100644 (file)
@@ -262,6 +262,10 @@ class faiManagement extends plugin
                        $a_setup = ($this->get_type($entry));
                
                        $this->dn = $entry['dn'];
+                       /* Check locking, save current plugin in 'back_plugin', so the dialog knows where to return. */
+                       if (($user= get_lock($this->dn)) != ""){
+                               return(gen_locked_message ($user, $this->dn));
+                       }
                        add_lock ($this->dn, $this->ui->dn);
 
                        $this->dialog= new $a_setup[0]($this->config,