Skip to content

Commit 48c40c6

Browse files
committed
Remove unnecessary user type check
1 parent f8c4fc9 commit 48c40c6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/context/org.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
6969
org := ctx.Org.Organization
7070
ctx.Data["Org"] = org
7171

72-
// Force redirection when username is actually a user.
73-
if org.Type != models.UserTypeOrganization {
74-
ctx.Redirect(org.AsUser().HomeLink())
75-
return
76-
}
77-
7872
// Admin has super access.
7973
if ctx.IsSigned && ctx.User.IsAdmin {
8074
ctx.Org.IsOwner = true

0 commit comments

Comments
 (0)