From cbb8fa5cd92317c7474edadbdec3468a35cfed80 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 22 Dec 2005 08:28:26 +0000 Subject: [PATCH] Fixed lock git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2370 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiManagement.inc | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.30.2