summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb8d344)
raw | patch | inline | side by side (parent: bb8d344)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 07:31:24 +0000 (07:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 07:31:24 +0000 (07:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4249 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/main.inc | patch | blob | history |
index e7c745eea3295cb9c549673bcfbb28a7b1ed3643..ddb0a24e1fcdeef882be5ace78698172ca6e6ac1 100644 (file)
$_SESSION['edit']= TRUE;
}
+ /* MyAccount_mode tell class user that we are editing for my account section
+ edit_mode allows us to force the acls to be not writeable, when not in editing mode */
$user->MyAccount_mode = true;
if (isset($_SESSION['edit'])){
$user->edit_mode = true;
$user->edit_mode = false;
}
+
/* Perform password change */
if (isset($_POST['password_finish'])){
/* For security reasons, check if user is allowed to set password again */
- if (chkacl($user->acl, "password") == "" || chkacl($user->acl, "create")){
+ if ($user->acl_is_writable("userPassword") || $user->acl_is_createable()){
/* Check input and feed errors into 'message' */
$message= array();
print_red (_("You are not allowed to set your password!"));
}
- $user->acl= "#none#";
del_lock ($ui->dn);
}
if (count ($message) == 0){
$user->save ();
gosa_log ("User/generic object'".$ui->dn."' has been saved");
- $user->acl= "#none#";
del_lock ($ui->dn);
sess_del ('edit');