summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 187f39d)
raw | patch | inline | side by side (parent: 187f39d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 2 Nov 2006 08:28:25 +0000 (08:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 2 Nov 2006 08:28:25 +0000 (08:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4986 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
plugins/personal/posix/main.inc | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index ef67b86cd623c59d84bf189fa3163d75032888b9..502a5466370ca6f48708ffcc1644f404fde06dde 100644 (file)
"plDescription" => _("POSIX account"),
"plSelfModify" => TRUE,
"plDepends" => array("user"),
- "plPriority" => 1,
+ "plPriority" => 2,
"plSection" => "personal",
"plCategory" => array("users"),
"plOptions" => array(),
index 9e4b15dd935b6cd812763a4343b6b58d7d15b0c4..e1ba25f475a9da9f4b6981d8e211c20838059cb9 100644 (file)
*/
/* Clear display */
-$display= "";
-
+$display = "";
+$lock_msg = "";
if (!$remove_lock){
/* Reset requested? */
/* Enter edit mode? */
if ((isset($_POST['edit'])) && (!isset($_SESSION['edit']))){
-
+
/* Check locking */
if (($username= get_lock($ui->dn)) != ""){
$_SESSION['back_plugin']= $plug;
- gen_locked_message ($username, $ui->dn);
- exit ();
- }
+ $_SESSION['LOCK_VARS_TO_USE'] = array("/^edit$/","/^plug$/");
+ $lock_msg = gen_locked_message ($username, $ui->dn);
- /* Lock the current entry */
- add_lock ($ui->dn, $ui->dn);
- $_SESSION['dn']= $ui->dn;
- $_SESSION['edit']= TRUE;
+ }else{
+
+ /* Lock the current entry */
+ add_lock ($ui->dn, $ui->dn);
+ $_SESSION['dn']= $ui->dn;
+ $_SESSION['edit']= TRUE;
+ }
}
/* save changes to LDAP and disable edit mode */
if (count ($message) == 0){
$posixAccount->save ();
gosa_log ("User/posix object'".$ui->dn."' has been saved");
- $posixAccount->acl= "#none#";
del_lock ($ui->dn);
sess_del ('edit');
}
/* Execute formular */
- $display.= $posixAccount->execute ();
+ if($lock_msg){
+ $display = $lock_msg;
+ }else{
+ $display.= $posixAccount->execute ();
+ }
/* Store changes in session */
if (isset ($_SESSION['edit'])){
}
/* Show page footer depending on the mode */
- if (!$posixAccount->group_dialog && !$posixAccount->show_ws_dialog && $posixAccount->is_account){
+ if (!$posixAccount->group_dialog && !$posixAccount->show_ws_dialog && $posixAccount->is_account && empty($lock_msg)){
$display.= "<p class=\"plugbottom\">";