Browse Source

提交代码

tags/v1.22.1.3^2
ychao_1983 3 years ago
parent
commit
4459712293
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/context/org.go

+ 1
- 1
modules/context/org.go View File

@@ -63,7 +63,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
org := ctx.Org.Organization
ctx.Data["Org"] = org

ctx.Data["IsCourse"] = orgName == setting.Course.OrgName
ctx.Data["IsCourse"] = ctx.Org.Organization.Name == setting.Course.OrgName

// Force redirection when username is actually a user.
if !org.IsOrganization() {


Loading…
Cancel
Save