From: hickert Date: Thu, 23 Nov 2006 10:39:57 +0000 (+0000) Subject: Some mini acl fixes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d509da5e3fbf40d11351099d0d27e03be0acf86b;p=gosa.git Some mini acl fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5209 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc index bca44d979..7b262eccd 100755 --- a/plugins/admin/mimetypes/class_mimetypeManagement.inc +++ b/plugins/admin/mimetypes/class_mimetypeManagement.inc @@ -158,7 +158,9 @@ class mimetypeManagement extends plugin ****************/ /* New mime type? */ - if ($s_action=="new"){ + $ui = get_userinfo(); + $acl = $ui->get_permissions($this->DivListMimeTypes->selectedBase,"mimetypes/mimetype"); + if (($s_action=="new") && preg_match("/c/",$acl)){ /* By default we set 'dn' to 'new', all relevant plugins will react on this. */ @@ -175,7 +177,7 @@ class mimetypeManagement extends plugin ****************/ /* Cancel dialogs */ - if (isset($_POST['edit_cancel']) || isset($_POST['password_cancel'])){ + if (isset($_POST['edit_cancel'])){ del_lock ($this->mimetabs->dn); unset ($this->mimetabs); $this->mimetabs= NULL;