|
|
@@ -106,8 +106,8 @@ func Profile(c *context.Context) {
|
|
|
count := models.CountUserRepositories(ctxUser.ID, showPrivate)
|
|
|
c.Data["Page"] = paginater.New(int(count), setting.UI.User.RepoPagingNum, page, 5)
|
|
|
}
|
|
|
- if ctxUser.ProhibitLogin == true {
|
|
|
- c.Handle(404, "ProhibitLogin", err)
|
|
|
+ if ctxUser.Suspended == true {
|
|
|
+ c.Handle(404, "Suspended", err)
|
|
|
} else {
|
|
|
c.HTML(200, PROFILE)
|
|
|
}
|