gwvp_createGitRepo("utrepo3", gwvp_getUserId(null, "user3"), "repo1", null, 2);
gwvp_createGitRepo("utrepo4", gwvp_getUserId(null, "user4"), "repo1", null, 2);
gwvp_createGitRepo("utrepo5", gwvp_getUserId(null, "user5"), "repo1", null, 2);
-gwvp_createGitRepo("utrepo6", gwvp_getUserId(null, "user6"), "repo1", null, 2);
+gwvp_createGitRepo("utrepo6", gwvp_getUserId(null, "user6"), "repo1", null, 0);
// now the fun part gwvp_addRepoPermission($repoid, $permtype, $permref)
gwvp_addRepoPermission(gwvp_GetRepoId("utrepo1"), "write", "user:".gwvp_getUserId(null, "user3"));
$pers = gwvp_resolvRepoPerms(gwvp_getUserId(null, "user2"), gwvp_GetRepoId("utrepo5"));
echo "User2 pers to repo5 = $pers - should be 3 (admin)\n";
+$pers = gwvp_resolvRepoPerms(-1, gwvp_GetRepoId("utrepo6"));
+echo "anon pers to repo5 = $pers - should be 2\n";
?>
\ No newline at end of file