summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9c5c4f3)
raw | patch | inline | side by side (parent: 9c5c4f3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 13:05:17 +0000 (13:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 May 2008 13:05:17 +0000 (13:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11040 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_divListSudo.inc | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc b/gosa-plugins/sudo/admin/sudo/class_divListSudo.inc
index 111d8f22db8e785be817a63fff65e7b31f532295..9db39af79ece08c935d962b5672fa5649ceb9445 100644 (file)
which are shown in the listbox on top of the listbox
*/
$base = sudo::get_sudoers_ou($this->config);
- $acl = $this->ui->get_category_permissions($base,"sudo");
+ $acl = $this->ui->get_permissions($base,"sudo/sudo");
+ $acl_all= $this->ui->get_category_permissions($base,"sudo");
/* Add default header */
$listhead = MultiSelectWindow::get_default_header(false);
" "._("Remove")."|"."del_role|\n";
}
- /* Add multiple copy & cut icons */
- if(is_object($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl)){
+ if(is_object($this->parent->CopyPasteHandler) && preg_match("/r/",$acl_all)){
$s.= "..|---|\n";
$s.= "..|<img src='images/lists/copy.png' alt='' border='0' class='center'>".
- " "._("Copy")."|"."multiple_copy_sudo|\n";
-# $s.= "..|<img src='images/lists/cut.png' alt='' border='0' class='center'>".
-# " "._("Cut")."|"."multiple_cut_sudo|\n";
-
- if($this->parent->CopyPasteHandler->entries_queued()){
- $img = "<img border='0' class='center' src='images/lists/paste.png' alt=''>";
- $s.="..|".$img." "._("Paste")."|editPaste|\n";
- }else{
- $img = "<img border='0' class='center' src='images/lists/paste.png' alt=''>";
- $s.="..|".$img." "._("Paste")."\n";
- }
+ " "._("Copy")."|"."multiple_copy_systems|\n";
}
+ /* Copy & paste icons */
+ if(is_object($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->entries_queued()){
+ $img = "<img border='0' class='center' src='images/lists/paste.png' alt=''>";
+ $s.="..|".$img." "._("Paste")."|editPaste|\n";
+ }else{
+ $img = "<img border='0' class='center' src='images/lists/paste-grey.png' alt=''>";
+ $s.="..|".$img." "._("Paste")."\n";
+ }
/* Add snapshot icons */
- if(preg_match("/(c.*w|w.*c)/",$acl)){
+ if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$s .= "..|---|\n";
$s .= $this->get_snapshot_header(TRUE);
}
-
-
+
$this->SetDropDownHeaderMenu($s);
$this->SetListHeader($listhead);
}
/* Create action icons - copy & paste icons */
$acl = $ui->get_permissions($val['dn'],"sudo/sudo");
+ $acl_all= $this->ui->get_category_permissions($val['dn'],"sudo");
/* Add edit icon */
- $actions = "";
-
$actions= "";
- if(($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl)){
-# $actions.= "<input class='center' type='image'
-# src='images/lists/cut.png' alt='"._("Cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+ if(preg_match("/r/",$acl_all) && $this->parent->CopyPasteHandler){
$actions.= "<input class='center' type='image'
- src='images/lists/copy.png' alt='"._("Copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
+ src='images/lists/copy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
+ }else{
+ $actions.="<img src='images/empty.png' alt=' ' class='center'> ";
}
-
$actions.= "<input class='center' type='image'
src='images/lists/edit.png' alt='".msgPool::editButton()."' name='sudo_edit_%KEY%' title='"._("Edit this entry")."'>";
- if(preg_match("/(c.*w|w.*c)/",$acl)){
+ /* Add snapshot icon */
+ if(preg_match("/(r.*w|w.*r)/",$acl_all)){
$actions.= $this->GetSnapShotActions($val['dn']);
+ }else{
+ $actions.="<img src='images/empty.png' alt=' ' class='center'> ";
+ $actions.="<img src='images/empty.png' alt=' ' class='center'> ";
}
+
if(preg_match("/d/",$acl)){
$actions.= "<input class='center' type='image'
src='images/lists/trash.png' alt='".msgPool::delButton()."' name='sudo_del_%KEY%' title='"._("Delete this entry")."'>";