summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4d862a3)
raw | patch | inline | side by side (parent: 4d862a3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 May 2008 09:40:28 +0000 (09:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 May 2008 09:40:28 +0000 (09:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11071 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc
index c5d52cf27d5a8d639de01f0ab5153e2b6d4d2414..55cc1c7845859e421e046148fd80e912121e0375 100644 (file)
/* Orig_Dn is used to verify if this object is new or only edited */
var $orig_dn = "";
+ var $orig_base = "";
function mimetype(&$config,$dn= NULL)
{
}
session::set('binary',$this->iconData);
session::set('binarytype',"image/jpeg");
+ $this->orig_base = $this->base;
}
$message[]= msgPool::duplicated("cn");
}
}
+
+ /* Check if we are allowed to create or move this object
+ */
+ if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){
+ $message[] = msgPool::permCreate();
+ }elseif($this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){
+ $message[] = msgPool::permMove();
+ }
+
return($message);
}