When creating a team with the api, that team does not have access to anything #5187
Closed
2 of 8 tasks
Labels
Milestone
[x]
):Description
When we migrated to Gitea from a bunch of Git repos behind an Apache, we wrote some scripts to move all repos and create users and teams and so on. This worked fairly well, except those users don't have access to the repos (404).
When I debugged this locally, I discovered that no
team_units
are created when creating a repo using the api, which is why the users won't have access to the repo, whereas when doing this with the web ui, all units are created accordingly.More specifically:
API:
UI:
Steps to reproduce
Possible solutions
(relevant code is in models/org_team.go:285
The text was updated successfully, but these errors were encountered: