From: hickert Date: Fri, 4 Apr 2008 09:10:08 +0000 (+0000) Subject: Readded remove_lock X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b1e65f073fdb1784193c70ec74d1f564aaee6aa8;p=gosa.git Readded remove_lock git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc index 89e4e38d6..fdd354938 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc @@ -35,8 +35,7 @@ class sudoManagement extends plugin private $sudotabs = NULL; private $base = ""; - - + /*! \brief */ public function __construct(&$config, &$ui) { /* Save configuration for internal use */ @@ -371,6 +370,13 @@ class sudoManagement extends plugin /* Optionally execute a command after we're done */ $this->postcreate(); } + + public function remove_lock() + { + if (isset($this->sudotabs->dn)){ + del_lock ($this->sudotabs->dn); + } + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>