Commit 25cbe6746b3eaa8e8358c89ec6e472ab702e6b53

Authored by Michael Joseph
1 parent 03b7cbc1

Added support for multiple units in user adminstration.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2904 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersUI.inc
... ... @@ -36,7 +36,7 @@ function getGroupDisplay($iGroupID) {
36 36 // else if this is a unit administrator, only display the groups in your unit
37 37 $oPatternListBox = & new PatternListBox($default->groups_table, "name", "id", "fGroupID");
38 38 $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table GUL on ST.id=GUL.group_id");
39   - $oPatternListBox->setWhereClause("GUL.unit_id=" . User::getUnitID($_SESSION["userID"]));
  39 + $oPatternListBox->setWhereClause("GUL.unit_id in (" . implode(",", User::getUnitIDs($_SESSION["userID"])) . ")");
40 40 $oPatternListBox->setIncludeDefaultValue(false);
41 41 }
42 42 $oPatternListBox->setPostBackOnChange(true);
... ...