Skip to content

Commit

Permalink
Remove unnecessary user type check
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Nov 19, 2021
1 parent f8c4fc9 commit 48c40c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions modules/context/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
org := ctx.Org.Organization
ctx.Data["Org"] = org

// Force redirection when username is actually a user.
if org.Type != models.UserTypeOrganization {
ctx.Redirect(org.AsUser().HomeLink())
return
}

// Admin has super access.
if ctx.IsSigned && ctx.User.IsAdmin {
ctx.Org.IsOwner = true
Expand Down

0 comments on commit 48c40c6

Please sign in to comment.