summaryrefslogtreecommitdiffstats
path: root/modules/context/org.go
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2022-05-07 17:49:43 +0200
committerGitHub <noreply@github.com>2022-05-07 17:49:43 +0200
commit38d72d40f132df8a6e90063f3e96a80048bf299e (patch)
treee1e87fc8130a8973b6f6aa1bcdacdc4ea40bcdcd /modules/context/org.go
parent672e5a752db8dd732ede058f97acf5336b651afb (diff)
downloadgitea-38d72d40f132df8a6e90063f3e96a80048bf299e.tar.gz
gitea-38d72d40f132df8a6e90063f3e96a80048bf299e.zip
Only show accessible teams in dashboard dropdown list (#19642)
Fixes #19637
Diffstat (limited to 'modules/context/org.go')
-rw-r--r--modules/context/org.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/context/org.go b/modules/context/org.go
index 427e4910c0..9f4ce485e5 100644
--- a/modules/context/org.go
+++ b/modules/context/org.go
@@ -72,12 +72,6 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
ctx.ContextUser = org.AsUser()
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.Doer.IsAdmin {
ctx.Org.IsOwner = true