summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c237070)
raw | patch | inline | side by side (parent: c237070)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 07:09:14 +0000 (07:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 07:09:14 +0000 (07:09 +0000) |
Acls aren't set in constructor, and so acl check ever failed
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4459 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4459 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index 32d0ba40202beba5f78b091d157b1ccab4096703..6f5bd912cda49a81186fea1dd8f8fdb74ec5fd27 100644 (file)
/* Load picture from file to object */
function set_picture($filename ="")
{
- if($this->acl_is_writeable("userPicture",(!is_object($this->parent) && !isset($_SESSION['edit'])))){
- if (!is_file($filename) || $filename =="" ){
- $filename= "./images/default.jpg";
- $this->jpegPhoto= "*removed*";
- }
+ if (!is_file($filename) || $filename =="" ){
+ $filename= "./images/default.jpg";
+ $this->jpegPhoto= "*removed*";
+ }
- $fd = fopen ($filename, "rb");
- $this->photoData= fread ($fd, filesize ($filename));
- $_SESSION['binary']= $this->photoData;
- $_SESSION['binarytype']= "image/jpeg";
- $this->jpegPhoto= "";
+ $fd = fopen ($filename, "rb");
+ $this->photoData= fread ($fd, filesize ($filename));
+ $_SESSION['binary']= $this->photoData;
+ $_SESSION['binarytype']= "image/jpeg";
+ $this->jpegPhoto= "";
- fclose ($fd);
- }
+ fclose ($fd);
}