summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff6aba3)
raw | patch | inline | side by side (parent: ff6aba3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jan 2007 04:15:36 +0000 (04:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jan 2007 04:15:36 +0000 (04:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5552 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_terminalGeneric.inc | patch | blob | history | |
plugins/admin/systems/class_terminalStartup.inc | patch | blob | history | |
plugins/admin/systems/terminal.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index cb446b8792d3873e996c9e2242871072d9a3f1c5..d2bc6690a78cfa1e1b1ee58961b86cc64c3df384 100644 (file)
/* Fill templating stuff */
$smarty= get_smarty();
$smarty->assign("cn", $this->cn);
+ $smarty->assign("cnACL", chkacl($this->acl,"cn"));
$smarty->assign("staticAddress", "");
$smarty->assign("bases", $this->config->idepartments);
$this->gotoTerminalPath;
}
- if(isset($_POST['termgeneric_posted'])){
+ if(isset($_POST['termgeneric_posted']) && chkacl($this->acl,"gotoNtpServer") == ""){
if(isset($_POST["inheritTimeServer"])){
$this->inheritTimeServer = true;
}else{
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index d5894c839b4ad70c76dade0bf138e2b71928c4e2..c63edb99d9c9f799520da60e524ca1a195057053 100644 (file)
$use = " checked ";
};
- if(chkacl($this->acl,"gotoLdapServer") == ""){
- $use.= " disabled ";
- }
+ $use .= chkacl($this->acl,"gotoLdapServer");
$SelectBoxLdapServer->AddEntry(
array(
index 4de4cc904ebb447675641465a256ae8709ef6cf6..e8444efa8cb3d35874ad4ed6a77b03c774a99666 100644 (file)
{else}
<td><LABEL for="cn">{t}Terminal name{/t}</LABEL>{$must}</td>
<td>
- <input name="cn" id="cn" size=18 maxlength=60 value="{$cn}">
+ <input name="cn" id="cn" size=18 maxlength=60 value="{$cn}" {$cnACL}>
</td>
{/if}
</tr>
<table width="100%">
<tr>
<td colspan="2">
- <input type="checkbox" value="1" name="inheritTimeServer"
+ <input type="checkbox" value="1" name="inheritTimeServer" {$gotoNtpServerACL}
{if $inheritTimeServer } checked {/if}
onClick="javascript:
changeState('gotoNtpServerSelected');