// All users except the already assigned users. if ($appEngine->isUserViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_GROUP, ACL_ACTION_ASSIGN)) { $allusers = $appEngine->getUserViewProvider()->getUsers(false); usort($allusers, array('\\svnadmin\\core\\entities\\User', "compare")); $len = count($users); for ($i = 0; $i < $len; $i++) { if_array_remove_object_element($allusers, $users[$i], "name"); } $allusers = array_values($allusers); $allgroups = $appEngine->getGroupViewProvider()->getGroups(); usort($allgroups, array('\\svnadmin\\core\\entities\\Group', "compare")); $len = count($groups); for ($i = 0; $i < $len; $i++) { if_array_remove_object_element($allgroups, $groups[$i], "name"); } if_array_remove_object_element($allgroups, $oGroup, "name"); $allgroups = array_values($allgroups); } } // Access-Path permissions of the current group. $paths = null; if ($appEngine->isAccessPathViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_ACCESSPATH, ACL_ACTION_VIEW)) { $paths = $appEngine->getAccessPathViewProvider()->getPathsOfGroup($oGroup); usort($paths, array('\\svnadmin\\core\\entities\\AccessPath', "compare")); } SetValue("GroupName", $groupname); SetValue("GroupNameEncoded", rawurlencode($groupname)); SetValue("UserList", $users); SetValue("GroupList", $groups); SetValue("AllUserList", $allusers); SetValue("AllGroupList", $allgroups);
$oGroup = new \svnadmin\core\entities\Group(); $oGroup->id = $groupname; $oGroup->name = $groupname; // Users of group $users = null; $allusers = null; if ($appEngine->isGroupViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_GROUP, ACL_ACTION_VIEW)) { $users = $appEngine->getGroupViewProvider()->getUsersOfGroup($oGroup); usort($users, array('\\svnadmin\\core\\entities\\User', "compare")); // All users except the already assigned users. if ($appEngine->isUserViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_GROUP, ACL_ACTION_ASSIGN)) { $allusers = $appEngine->getUserViewProvider()->getUsers(false); usort($allusers, array('\\svnadmin\\core\\entities\\User', "compare")); $len = count($users); for ($i = 0; $i < $len; $i++) { if_array_remove_object_element($allusers, $users[$i], "name"); } $allusers = array_values($allusers); } } // Access-Path permissions of the current group. $paths = null; if ($appEngine->isAccessPathViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_ACCESSPATH, ACL_ACTION_VIEW)) { $paths = $appEngine->getAccessPathViewProvider()->getPathsOfGroup($oGroup); usort($paths, array('\\svnadmin\\core\\entities\\AccessPath', "compare")); } SetValue("GroupName", $groupname); SetValue("GroupNameEncoded", rawurlencode($groupname)); SetValue("UserList", $users); SetValue("AllUserList", $allusers); SetValue("AccessPathList", $paths);
// This step is important, to recreate the indexes. } } // Groups of the user. $groups = null; $allgroups = null; if ($appEngine->isGroupViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_GROUP, ACL_ACTION_VIEW)) { $groups = $appEngine->getGroupViewProvider()->getGroupsOfUser($oUser); usort($groups, array('\\svnadmin\\core\\entities\\Group', "compare")); // Get all existing groups and remove the groups in which the user is already in. if ($appEngine->isGroupViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_GROUP, ACL_ACTION_ASSIGN)) { $allgroups = $appEngine->getGroupViewProvider()->getGroups(); usort($allgroups, array('\\svnadmin\\core\\entities\\Group', "compare")); $len = count($groups); for ($i = 0; $i < $len; $i++) { if_array_remove_object_element($allgroups, $groups[$i], "name"); } $allgroups = array_values($allgroups); } } // Access-Path permissions of the current group. $paths = null; if ($appEngine->isAccessPathViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_ACCESSPATH, ACL_ACTION_VIEW)) { $paths = $appEngine->getAccessPathViewProvider()->getPathsOfUser($oUser); usort($paths, array('\\svnadmin\\core\\entities\\AccessPath', "compare")); } // Check whether the user is an project administrator. $restricted_paths = null; $isprojectmanager = false; if ($appEngine->isAuthenticationActive()) { $uname = $username;