summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13f599b)
raw | patch | inline | side by side (parent: 13f599b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 24 Mar 2010 12:48:37 +0000 (12:48 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 24 Mar 2010 12:48:37 +0000 (12:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17072 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index 86ec537be8b11296795a43391e614865f0dee815..bbbc5b8063012a800edb76f26452f12aadccbcae 100644 (file)
} else {
$smarty->assign("$val", "");
}
- $smarty->assign("$val"."ACL", $this->getacl($val));
+ $smarty->assign("$val"."ACL", $this->getacl(preg_replace("/^.*_/","",$val)));
}
$smarty->assign("mustchangepasswordACL", $this->getacl("mustchangepassword"));
}else{
$smarty->assign("use_".$val,FALSE);
}
-
- if((session::get("js"))&&(($val=="uidNumber")||($val=="gidNumber")))
- {
- $smarty->assign("$val"."ACL",$this->getacl($val));
- $smarty->assign("$val", $this->$val);
- continue;
- }
$smarty->assign("$val", $this->$val);
+ }
+
+ $tmp = $this->plInfo();
+ foreach($tmp['plProvidedAcls'] as $val => $desc){
$smarty->assign("$val"."ACL", $this->getacl($val));
}
/* Work on trust modes */
$smarty->assign("trusthide", " disabled ");
- $smarty->assign("trustmodeACL", $this->getacl("trustModel"));
+ $smarty->assign("trustmodeACL", $this->getacl("accessTo"));
if ($this->trustModel == "fullaccess"){
$trustmode= 1;
// pervent double disable tag in html code, this will disturb our clean w3c html
- $smarty->assign("trustmode", $this->getacl("trustModel"));
+ $smarty->assign("trustmode", $this->getacl("accessTo"));
} elseif ($this->trustModel == "byhost"){
$trustmode= 2;
$smarty->assign("trusthide", "");
} else {
// pervent double disable tag in html code, this will disturb our clean w3c html
- $smarty->assign("trustmode", $this->getacl("trustModel"));
+ $smarty->assign("trustmode", $this->getacl("accessTo"));
$trustmode= 0;
}
$smarty->assign("trustmode", $trustmode);
}
/* Trust mode - special handling */
- if($this->acl_is_writeable("trustModel")){
+ if($this->acl_is_writeable("accessTo")){
if (isset($_POST['trustmode'])){
$saved= $this->trustModel;
if ($_POST['trustmode'] == "1"){
"plProvidedAcls" => array(
"homeDirectory" => _("Home directory"),
+ "primaryGroup" => _("Primary group"),
"loginShell" => _("Shell"),
"uidNumber" => _("User ID"),
"gidNumber" => _("Group ID"),
}
/* Trust mode - special handling */
- if($this->acl_is_writeable("trustModel")){
+ if($this->acl_is_writeable("accessTo")){
if (isset($_POST['trustmode'])){
$saved= $this->trustModel;
if ($_POST['trustmode'] == "1"){