From: hickert Date: Mon, 13 Sep 2010 13:38:46 +0000 (+0000) Subject: fixed plugin handling in case of GET_[reset] X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=64fc81daa7605d3ceb970cc83c8e6db4edb90c36;p=gosa.git fixed plugin handling in case of GET_[reset] git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19627 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/acl/main.inc b/gosa-core/plugins/admin/acl/main.inc index 0b9182f99..24631780c 100644 --- a/gosa-core/plugins/admin/acl/main.inc +++ b/gosa-core/plugins/admin/acl/main.inc @@ -21,35 +21,36 @@ */ /* Remove locks created by this plugin -*/ + */ if ($remove_lock){ - if(session::is_set('aclManagement')){ - $macl = session::get('aclManagement'); - $macl->remove_lock(); - } + if(session::is_set('aclManagement')){ + $macl = session::get('aclManagement'); + $macl->remove_lock(); + session::un_set('aclManagement'); + } } /* Remove this plugin from session -*/ + */ if ( $cleanup ){ - session::un_set('aclManagement'); + session::un_set('aclManagement'); }else{ - /* Create usermanagement object on demand */ - if (!session::is_set('aclManagement')){ - $aclManagement= new aclManagement ($config, $ui); - session::set('aclManagement',$aclManagement); - } - $aclManagement = session::get('aclManagement'); - $display= $aclManagement->execute(); + /* Create usermanagement object on demand */ + if (!session::is_set('aclManagement')){ + $aclManagement= new aclManagement ($config, $ui); + session::set('aclManagement',$aclManagement); + } + $aclManagement = session::get('aclManagement'); + $display= $aclManagement->execute(); - /* Reset requested? */ - if (isset($_GET['reset']) && $_GET['reset'] == 1){ - session::un_set ('aclManagement'); - } + /* Reset requested? */ + if (isset($_GET['reset']) && $_GET['reset'] == 1){ + session::un_set ('aclManagement'); + } - /* Show and save dialog */ - session::set('aclManagement',$aclManagement); + /* Show and save dialog */ + session::set('aclManagement',$aclManagement); } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: