Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 10:46:10 +01:00
This commit is contained in:
Unknown 2014-05-01 09:09:37 -04:00
parent 480a4ae8c5
commit a7584d16e4

View file

@ -230,9 +230,9 @@ func ChangeUserName(user *User, newUserName string) (err error) {
accesses[i].UserName = newUserName
if strings.HasPrefix(accesses[i].RepoName, user.LowerName+"/") {
accesses[i].RepoName = strings.Replace(accesses[i].RepoName, user.LowerName, newUserName, 1)
if err = UpdateAccessWithSession(sess, &accesses[i]); err != nil {
return err
}
}
if err = UpdateAccessWithSession(sess, &accesses[i]); err != nil {
return err
}
}