summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83c6698)
raw | patch | inline | side by side (parent: 83c6698)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 05:38:41 +0000 (05:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 05:38:41 +0000 (05:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4621 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/mimetypes/class_mimetypeGeneric.inc | patch | blob | history | |
plugins/admin/mimetypes/class_mimetypeManagement.inc | patch | blob | history |
diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc
index 8f0594aec21b2d012b3acf97518946fdad33a54b..cdadb5be263880255efca9e61257bd7cca4d1afd 100644 (file)
if (empty($filename)){
$filename= "./images/default_icon.png";
$this->use_gotoMimeIcon= "*removed*";
+ }else{
+ $this->use_gotoMimeIcon= $filename;
}
if (file_exists($filename)){
diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc
index 7bd52da85eb88dbac20b555585bebfc08ebcd81e..3ee002eca2626df699727e1c159ee9e43422b597 100755 (executable)
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
- if ($this->acl_is_removeable()){
+ $ui = get_userinfo();
+ $acl = $ui->get_permissions($this->dn,"mimetypes/mimetype");
+ if (preg_match("/d/",$acl)){
/* Check locking, save current plugin in 'back_plugin', so
the dialog knows where to return. */
/* Some nice guy may send this as POST, so we've to check
for the permissions again. */
- if ($this->acl_is_removeable()){
-
+ $ui = get_userinfo();
+ $acl = $ui->get_permissions($this->dn,"mimetypes/mimetype");
+ if(preg_match("/d/",$acl)){
/* Delete request is permitted, perform LDAP action */
$this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
$this->mimetabs->set_acl_base($this->dn);