1
0
Fork 0
forked from forgejo/forgejo

Add/remove member need add/remove access to repositories as well

This commit is contained in:
Unknwon 2014-08-16 16:58:32 +08:00
parent bba707de36
commit a60edbe88c
3 changed files with 113 additions and 11 deletions

View file

@ -502,7 +502,7 @@ func CreateRepository(u *User, name, desc, lang, license string, private, mirror
}
access := &Access{
UserName: u.LowerName,
RepoName: strings.ToLower(path.Join(u.Name, repo.Name)),
RepoName: path.Join(u.LowerName, repo.LowerName),
Mode: mode,
}
// Give access to all members in owner team.