forked from NYANDEV/forgejo
Fixes #19637
This commit is contained in:
parent
59d132f0b3
commit
c8a83ace59
2 changed files with 1 additions and 7 deletions
|
@ -70,12 +70,6 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
|
|||
org := ctx.Org.Organization
|
||||
ctx.Data["Org"] = org
|
||||
|
||||
teams, err := org.LoadTeams()
|
||||
if err != nil {
|
||||
ctx.ServerError("LoadTeams", err)
|
||||
}
|
||||
ctx.Data["OrgTeams"] = teams
|
||||
|
||||
// Admin has super access.
|
||||
if ctx.IsSigned && ctx.User.IsAdmin {
|
||||
ctx.Org.IsOwner = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue