X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fapplications%2Fclass_divListApplication.inc;h=4676a4bb7ac129d4558fd42745548a8292ddfdf1;hb=28a907d9f00d28cbb058ac1ac319b1b22cff33ea;hp=4f4634cd8848c992a48de9f253c61692670cfc3b;hpb=c4f4fa04578d39e60108140a018d6213fbbeeaff;p=gosa.git
diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc
index 4f4634cd8..4676a4bb7 100755
--- a/plugins/admin/applications/class_divListApplication.inc
+++ b/plugins/admin/applications/class_divListApplication.inc
@@ -53,7 +53,6 @@ class divListApplication extends MultiSelectWindow
function AddUserBoxToFilter($position){
$str = "";
- print_a($this->parent);
if(($position == 2) && ($this->parent->IsReleaseManagementActivated($this->config))){
$smarty = get_smarty();
$smarty->assign("selectedRelease",$this->selectedRelease);
@@ -85,20 +84,9 @@ class divListApplication extends MultiSelectWindow
$Copy_Paste ="";
}
- /* Create listhead, it will be shown on top of the divlist.
- * It provides general navigation and object creation
- */
- $listhead = "
".
- "
".
- "
".
- "
".
- "
".
- "
![](images/list_seperator.png)
".
- "
".
$Copy_Paste.
"
![](images/list_seperator.png)
".
@@ -132,26 +120,52 @@ class divListApplication extends MultiSelectWindow
$empty = "
![](images/empty.png)
";
- /* Create action icons */
- $actions = "";
- if($this->parent->CopyPasteHandler){
- $actions.= "
";
- $actions.= "
";
- }
- $actions.= "
";
- $actions.= "
";
-
-
/********************
Attach objects
********************/
foreach($list as $key => $val){
- $title = "title='dn: ".@LDAP::fix($val['dn'])."'";
+
+ $acl= get_permissions ($val['dn'], $this->ui->subtreeACL);
+ $acl= get_module_permission($acl, "application", $val['dn']);
+
+ /* Get state */
+ $state = "";
+ if(isset($val['FAIstate'])){
+ $state = $val['FAIstate'][0];
+ }
+
+ /* If this application is a freezed one, we must hide some action buttons */
+ $is_freezed = preg_match("/freeze/i",$state);
+
+ /* Create action icons */
+ $actions = "";
+
+ if($acl == "#all#"){
+ if(($this->parent->CopyPasteHandler) && (!$is_freezed)){
+ $actions.= "
";
+ }
+ if($this->parent->CopyPasteHandler){
+ $actions.= "
";
+ }
+ }
+
+ $actions.= "
";
+ if($is_freezed){
+ $actions.= "
![](images/empty.png)
";
+ }else{
+
+ if(chkacl($acl,"delete") == ""){
+ $actions.= "
";
+ }
+ }
+
+
+ $title = "title='".preg_replace('/ /', ' ', @LDAP::fix($val['dn']))."'";
if(!isset($val['description'][0])){
$desc = "";