summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92179d4)
raw | patch | inline | side by side (parent: 92179d4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Oct 2008 13:30:50 +0000 (13:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Oct 2008 13:30:50 +0000 (13:30 +0000) |
-Only list Opsi products, if we are allowed to view those
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12694 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12694 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index a8afa4c75c19c000653d5668011ed07efcc300be..b2b38756f12bd61db1a2426c61ca8b6fb622a121 100644 (file)
/* Append opsi objects, if opsi is available and if we are on the fai_base
*/
if($this->opsi instanceof opsi && $this->opsi->enabled()){
-
- $err = FALSE;
- if(!$err && $this->DivListFai->ShowOpsiNetboot){
- $n_pro = $this->opsi->get_netboot_products();
- $err |= $this->opsi->is_error();
- foreach($n_pro as $name => $data){
- $entry = array("cn" => $name,
- "description" => $data['DESC'],
- "type" => "opsi_netboot");
- $this->objects[$name."_opsi_netboot"] = $entry;
- }
- }
- if(!$err && $this->DivListFai->ShowOpsiLocal){
- $l_pro = $this->opsi->get_local_products();
- $err |= $this->opsi->is_error();
- foreach($l_pro as $name => $data){
- $entry = array("cn" => $name,
- "description" => $data['DESC'],
- "type" => "opsi_local");
- $this->objects[$name."_opsi_local"] = $entry;
+ $opsi_acl = $this->ui->get_permissions($object['dn'],"opsi/opsiProperties");
+ if(preg_match("/r/",$opsi_acl)){
+ $err = FALSE;
+ if(!$err && $this->DivListFai->ShowOpsiNetboot){
+ $n_pro = $this->opsi->get_netboot_products();
+ $err |= $this->opsi->is_error();
+ foreach($n_pro as $name => $data){
+ $entry = array("cn" => $name,
+ "description" => $data['DESC'],
+ "type" => "opsi_netboot");
+ $this->objects[$name."_opsi_netboot"] = $entry;
+ }
+ }
+ if(!$err && $this->DivListFai->ShowOpsiLocal){
+ $l_pro = $this->opsi->get_local_products();
+ $err |= $this->opsi->is_error();
+ foreach($l_pro as $name => $data){
+ $entry = array("cn" => $name,
+ "description" => $data['DESC'],
+ "type" => "opsi_local");
+ $this->objects[$name."_opsi_local"] = $entry;
+ }
}
- }
- if($err){
- msg_dialog::display(_("Error"),msgPool::siError($this->opsi->get_error()),ERROR_DIALOG);
+ if($err){
+ msg_dialog::display(_("Error"),msgPool::siError($this->opsi->get_error()),ERROR_DIALOG);
+ }
}
}