summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47e5ded)
raw | patch | inline | side by side (parent: 47e5ded)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Nov 2006 11:42:15 +0000 (11:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Nov 2006 11:42:15 +0000 (11:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5191 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/mimetypes/class_divListMimeTypes.inc | patch | blob | history |
diff --git a/plugins/admin/mimetypes/class_divListMimeTypes.inc b/plugins/admin/mimetypes/class_divListMimeTypes.inc
index d48ad362527e599be279fa7b78c07ce7dd62ba35..3c3a44073f6065accf932a69c003d1e9919e37ae 100755 (executable)
array("ou", "description"), GL_SIZELIMIT | GL_SUBSEARCH);
/* Load possible departments */
- $ui= get_userinfo();
- $tdeps= $ui->get_module_departments("fai");
+ $ui = get_userinfo();
+ $tdeps= $ui->get_module_departments($this->module);
$ids = $this->config->idepartments;
}
}
+ $ui = get_userinfo();
+ $acl = $ui->get_permissions("cn=dummy,ou=mimetypes,".$this->selectedBase,"mimetypes/mimetype");
+ $acl_all = $ui->has_complete_category_acls($this->selectedBase,"mimetypes") ;
+
/* Get copy & paste icon */
- if($this->parent->CopyPasteHandler){
+ if(preg_match("/(c.*w|w.*c)/",$acl_all) && $this->parent->CopyPasteHandler){
$Copy_Paste = $this->parent->CopyPasteHandler->generatePasteIcon();
}else{
$Copy_Paste ="";
/* Create listhead, it will be shown on top of the divlist.
* It provides general navigation and object creation
*/
- $ui = get_userinfo();
- $acl = $ui->get_permissions("cn=dummy,ou=mimetypes,".$this->selectedBase,"mimetypes/mimetype");
$listhead = "<div style='background:#F0F0F9;padding:5px;'>".
" <input class='center' type='image' src='images/list_root.png' align='middle' ".
" <input class='center' type='image' src='images/list_reload.png' align='middle' ".
"title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ".
" <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'> ";
- $listhead .= $this->get_snapshot_header($this->selectedBase);
+
+ if(preg_match("/(c.*w|w.*c)/",$acl_all)){
+ $listhead .= $this->get_snapshot_header($this->selectedBase);
+ }
if(preg_match("/c/",$acl)){
$listhead .= " <input class='center' type='image' align='middle' src='images/list_new_mime.png' alt='"._("new").
Attach objects
********************/
- $ui = get_userinfo();
- $acl = $ui->get_permissions("cn=dummy,ou=mimetypes,".$this->selectedBase,"mimetypes/mimetype");
-
foreach($list as $key => $val){
- /* Create action icons */
- $actions = $this->GetSnapShotActions($val['dn']);
+ $ui = get_userinfo();
+ $acl = $ui->get_permissions($val['dn'],"mimetypes/mimetype");
+ $acl_all = $ui->has_complete_category_acls($val['dn'],"mimetypes") ;
+ /* Create action icons */
+ $actions = "";
+ if(preg_match("/(c.*w|w.*c)/",$acl_all)){
+ $actions .= $this->GetSnapShotActions($val['dn']);
+ }
/* Get copy Paste icons */
if($this->parent->CopyPasteHandler){