X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Facl%2Fclass_aclRole.inc;h=e78f0dfa1d604105fee21bfada69b3d9d6bd0c11;hb=954721c778b8690f7094a659462d4516e7b5a473;hp=8229059306094d3df7974a0364b4db228b282ba2;hpb=a221e82a2c7a447ff5222c517494a1a7e5d28a9f;p=gosa.git diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc index 822905930..e78f0dfa1 100644 --- a/gosa-core/plugins/admin/acl/class_aclRole.inc +++ b/gosa-core/plugins/admin/acl/class_aclRole.inc @@ -60,7 +60,7 @@ class aclrole extends acl plugin::plugin($config, $dn); if($this->dn == "new"){ - $this->base = session::global_get('CurrentMainBase'); + $this->base = session::get('CurrentMainBase'); }else{ $this->base = preg_replace("/^[^,]+,[^,]+,/","",$this->dn); new log("view","acl/".get_class($this),$this->dn); @@ -77,7 +77,7 @@ class aclrole extends acl ksort($this->gosaAclTemplate); /* Extract available categories from plugin info list */ - $tmp= session::global_get('plist'); + $tmp= session::get('plist'); $plist= $tmp->info; $oc = array(); foreach ($plist as $class => $acls){ @@ -177,7 +177,7 @@ class aclrole extends acl } } - $tmp= session::global_get('plist'); + $tmp= session::get('plist'); $plist= $tmp->info; /* Handle posts */ @@ -191,6 +191,18 @@ class aclrole extends acl $new_acl= array(); $aclDialog= FALSE; $firstedit= FALSE; + + /* Act on HTML post and gets here. + */ + if(isset($_GET['id']) && isset($_GET['act']) && $_GET['act'] == "edit"){ + $id = trim($_GET['id']); + $this->dialogState= 'create'; + $firstedit= TRUE; + $this->dialog= TRUE; + $this->currentIndex= $id; + $this->loadAclEntry(); + } + foreach($_POST as $name => $post){ /* Actions... */ @@ -364,8 +376,15 @@ class aclrole extends acl /* Fill in entries */ foreach ($this->gosaAclTemplate as $key => $entry){ - $field1= array("string" => $this->aclTypes[$entry['type']], "attach" => "style='width:100px'"); - $field2= array("string" => $this->assembleAclSummary($entry)); + + if($this->acl_is_readable("")){ + $link = "".$this->assembleAclSummary($entry).""; + }else{ + $link = $this->assembleAclSummary($entry); + } + + $field1= array("string" => $this->aclTypes[$entry['type']], "attach" => "style='width:150px'"); + $field2= array("string" => $link); $action =""; if($this->acl_is_writeable("gosaAclEntry")){ @@ -405,9 +424,7 @@ class aclrole extends acl $summary.= "$oc, "; continue; } - if (isset($this->aclContents["$section/$oc"]) && count($this->aclContents["$section/$oc"]) && isset($this->aclContents["$section/$oc"][0]) && - $this->aclContents["$section/$oc"][0] != ""){ - + if (isset($this->aclContents["$section/$oc"]) && count($this->aclContents["$section/$oc"])){ $summary.= "$oc, "; continue; } @@ -477,7 +494,7 @@ class aclrole extends acl function sort_by_priority($list) { - $tmp= session::global_get('plist'); + $tmp= session::get('plist'); $plist= $tmp->info; asort($plist); $newSort = array(); @@ -619,7 +636,7 @@ class aclrole extends acl /* Refresh users ACL */ $ui= get_userinfo(); $ui->loadACL(); - session::global_set('ui',$ui); + session::set('ui',$ui); }