SVN auth script: enable commit access to /tags folder

This commit is contained in:
2014-03-27 18:18:56 +06:00
parent cb6a8756b6
commit 56e8308621

View File

@@ -57,6 +57,14 @@ function handleSingleUserPHID(
$access[$repository_pathname]['RO'] = array();
}
$access[$repository_pathname]['RW'][] = $user_name;
// Write access to the tags
$tags_pathname = "$repository_name:/tags";
if (!array_key_exists($tags_pathname, $access)) {
$access[$tags_pathname]['RW'] = array();
$access[$tags_pathname]['RO'] = array();
}
$access[$tags_pathname]['RW'][] = $user_name;
}
// Parse repository and put it's members to the config file