23 include_once (
"Class.User.php");
24 include_once (
"Class.ControlObject.php");
25 include_once (
"Class.ObjectPermission.php");
33 $viewuser = (
GetHttpVars(
"viewuser",
"no") ==
"yes");
40 $action->lay->Set(
"title", $oid->description);
41 $action->lay->Set(
"appid", $appid);
42 $action->lay->Set(
"oid", $coid);
45 $appacls = $acl->getAclApplication($oid->id_class);
47 while (list($k, $v) = each($appacls)) {
48 $tacldef[$k][
"description"] = _($v->description);
49 $tacldef[$k][
"name"] = $v->name;
51 $action->lay->SetBlockData(
"DEFACL", $tacldef);
54 if ($viewuser) $tiduser = $ouser->GetUserList();
55 else $tiduser = $ouser->GetGroupList();
57 while (list($k, $v) = each($tiduser)) {
58 if ($v->id == 1)
continue;
59 $userids[$k][
"userid"] = $v->id;
60 $userids[$k][
"descuser"] = $v->firstname .
" " . $v->lastname;
61 $userids[$k][
"SELECTACL"] =
"selectacl_$k";
71 while (list($ka, $acl) = each($appacls)) {
72 $tacl[$ka][
"aclid"] = $acl->id;
73 if (in_array($acl->id, $uperm->privileges)) {
74 $tacl[$ka][
"selected"] =
"checked";
75 }
else $tacl[$ka][
"selected"] =
"";
77 $action->lay->SetBlockData($userids[$k][
"SELECTACL"], $tacl);
80 $action->lay->SetBlockData(
"USERS", $userids);