mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Manage team with access to all repositories
This commit is contained in:
@@ -53,6 +53,7 @@ func (org *User) GetOwnerTeam() (*Team, error) {
|
||||
}
|
||||
|
||||
func (org *User) getTeams(e Engine) error {
|
||||
org.Teams = nil
|
||||
return e.
|
||||
Where("org_id=?", org.ID).
|
||||
OrderBy("CASE WHEN name LIKE '" + ownerTeamName + "' THEN '' ELSE name END").
|
||||
|
||||
Reference in New Issue
Block a user