From: hickert Date: Thu, 22 Dec 2005 08:28:26 +0000 (+0000) Subject: Fixed lock X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cbb8fa5cd92317c7474edadbdec3468a35cfed80;p=gosa.git Fixed lock git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2370 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 55e8499b1..8a1e69e15 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -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,