summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a7f4ac1)
raw | patch | inline | side by side (parent: a7f4ac1)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Feb 2010 09:44:57 +0000 (09:44 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Feb 2010 09:44:57 +0000 (09:44 +0000) |
Disable CD generation, if no ISOCMD is specified
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15668 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15668 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/trunk/gosa-plugins/systems/admin/systems/class_divListSystem.inc
index 8176f2a4b5d4243966cc229f6d7b760f67310fec..f03f1744bd3afa0d68134938ea21e36243888c13 100644 (file)
/* Add create FAI CD icon
*/
$acl_cd = preg_match("/w/",$ui->get_permissions($val['dn'],"workstation/workgeneric","createFAICD"));
- if(in_array("gotoWorkstation",$val['objectClass']) && $acl_cd){
- $action2= "<input class='center' type='image' src='plugins/systems/images/cdrom.png' alt='"._("Create CD")."'
+ $isocd_command= $this->config->search("workgeneric", "ISOCMD",array('tabs'));
+ if (check_command($isocd_command)){
+ if(in_array("gotoWorkstation",$val['objectClass']) && $acl_cd){
+ $action2= "<input class='center' type='image' src='plugins/systems/images/cdrom.png' alt='"._("Create CD")."'
name='gen_cd_%KEY%' title='"._("Create FAI CD")."'> ".$action2;
- }else{
- $action2= $empty.$action2;
+ }else{
+ $action2= $empty.$action2;
+ }
}
if(isset($val['message'])){