From f6d5be95a902332fe9a2df00985835c416699cde Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 Jul 2006 07:30:42 +0000 Subject: [PATCH] Fixedd picture acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4226 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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*"; -- 2.30.2