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