From: hickert Date: Wed, 19 Jul 2006 07:30:42 +0000 (+0000) Subject: Fixedd picture acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f6d5be95a902332fe9a2df00985835c416699cde;p=gosa.git Fixedd picture acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4226 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index f83bd4ca7..c5e234be3 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -301,7 +301,7 @@ class user extends plugin } /* Want picture edit dialog? */ - if($this->acl_is_writeable("jpegPhoto")) { + if($this->acl_is_readable("userPicture")) { if (isset($_POST['edit_picture'])){ /* Save values for later recovery, in case some presses the cancel button. */ @@ -310,8 +310,10 @@ class user extends plugin $this->picture_dialog= TRUE; $this->dialog= TRUE; } + } - /* Remove picture? */ + /* Remove picture? */ + if($this->acl_is_writeable("userPicture")) { if (isset($_POST['picture_remove'])){ $this->jpegPhoto= "*removed*"; $this->set_picture ("./images/default.jpg"); @@ -1132,7 +1134,7 @@ class user extends plugin /* Load picture from file to object */ function set_picture($filename) { - if($this->acl_is_writeable("jpegPhoto")) { + if($this->acl_is_writeable("userPicture")) { if (!is_file($filename)){ $filename= "./images/default.jpg"; $this->jpegPhoto= "*removed*";