forked from forgejo/forgejo
Add/remove member need add/remove access to repositories as well
This commit is contained in:
parent
bba707de36
commit
a60edbe88c
3 changed files with 113 additions and 11 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue