summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47f45f2)
raw | patch | inline | side by side (parent: 47f45f2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Aug 2006 05:52:18 +0000 (05:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Aug 2006 05:52:18 +0000 (05:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4371 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history | |
plugins/personal/generic/main.inc | patch | blob | history |
index 198f7aba0cd19a6decf0cbcb67d33eaebe76e59a..cf5cb5a34485dd2ec13793481e10b7978c974ca3 100644 (file)
$date = $this->dateOfBirth;
}else{
$date = getdate($this->dateOfBirth);
- }
+ }
}
$days= array();
}
/* Want picture edit dialog? */
- if($this->acl_is_readable("userPicture")) {
+ if($this->acl_is_writeable("userPicture")) {
if (isset($_POST['edit_picture'])){
/* Save values for later recovery, in case some presses
the cancel button. */
/* Only force save of changes ....
If this attributes aren't changed, avoid saving.
*/
- if ($this->use_dob == "1"){
- $this->dateOfBirth= date("Y-m-d", $this->dateOfBirth);
- }
if($this->gender=="0") $this->gender ="";
if($this->preferredLanguage=="0") $this->preferredLanguage ="";
/* First use parents methods to do some basic fillup in $this->attrs */
plugin::save ();
+ if ($this->use_dob == "1"){
+ $this->attrs['dateOfBirth'] = date("Y-m-d", $this->dateOfBirth);
+ }
+
/* Remove additional objectClasses */
$tmp= array();
foreach ($this->attrs['objectClass'] as $key => $set){
index 840bc74236ebeee2fce2880b2aa9a3ce8bca5f59..c01542f94cfb5b4303b333e4e598fa8324e1678a 100644 (file)
/* Create user object on demand */
if (!isset($_SESSION['user']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
$_SESSION['user']= new user ($config, $ui->dn);
+ $_SESSION['user']->set_acl_base($ui->dn);
+ $_SESSION['user']->set_acl_category("users");
}
$user= $_SESSION['user'];