summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 97e3a11)
raw | patch | inline | side by side (parent: 97e3a11)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 Aug 2006 10:51:09 +0000 (10:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 7 Aug 2006 10:51:09 +0000 (10:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4414 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/samba/class_sambaAccount.inc | patch | blob | history | |
plugins/personal/samba/main.inc | patch | blob | history | |
plugins/personal/samba/samba3.tpl | patch | blob | history |
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index 2d851a2cc41b79101e87db2802da29f27a8c9cc1..1516071113e15679b60e2e90d45c3b3817e52ff5 100644 (file)
if($_SESSION['js']){
/* Set form elements to disabled/enable state */
$smarty->assign("tsloginstate", $this->mungedObject->getTsLogin()?"":"disabled");
- $smarty->assign("inheritstate", $this->mungedObject->getInheritMode()?"disabled":"");
+
+ $smarty->assign("inheritstate", "");
+ if($this->acl_is_writeable("AllowLoginOnTerminalServer")){
+ $smarty->assign("inheritstate", $this->mungedObject->getInheritMode()?"disabled":"");
+ }
+
+
+
}else{
$smarty->assign("tsloginstate", "");
$smarty->assign("inheritstate", "");
index 915ede7059e88342352d40d14ee76099e4c7aa21..564dc3cd6e02deec992a290fe22f0cc75b634a82 100644 (file)
$_SESSION['edit']= TRUE;
}
- /* Adjust acl's to mode */
- if (isset($_SESSION['edit'])){
- $acl= get_permissions ($ui->dn, $ui->subtreeACL);
- $sambaAccount->acl= get_module_permission($acl, "samba", $ui->dn);
- } else {
- $acl= get_permissions ($ui->dn, $ui->subtreeACL);
- $editacl= get_module_permission($acl, "samba", $ui->dn);
- $sambaAccount->acl= "#none#";
- }
-
/* save changes to LDAP and disable edit mode */
if (isset($_POST['edit_finish'])){
index 99f2f1b4b75c8746a19c5e0a8fb9744bd9bebbb4..3e305f01aeed5a651910a172c8c831968a67c7e9 100644 (file)
</td>
<td style="vertical-align:top;">
{render acl=$AllowLoginOnTerminalServerACL}
- <input type=checkbox id="inherit" name="inherit"} {if $inheritstate} checked {/if}
+ <input type=checkbox id="inherit" name="inherit" {if $inheritstate} checked {/if}
onClick="changeState('CtxInitialProgram');
changeState('CtxWorkDirectory');"
{/render}
<label for="logoff_time_set">{t}Limit Logoff Time{/t}</label>
{render acl=$sambaLogoffTimeACL}
- <select name=sambaLogoffTime_day onChange="createResult_sambaLogoffTime(this.form,this.form.sambaLogoffTime);>"
+ <select name=sambaLogoffTime_day onChange="createResult_sambaLogoffTime(this.form,this.form.sambaLogoffTime);">
{html_options values=$sambaLogoffTime_days output=$sambaLogoffTime_days selected=$sambaLogoffTime_day}
</select>
{/render}