File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ func ServCommand(ctx *macaron.Context) {
114114 })
115115 return
116116 }
117- if ! owner .IsActive {
117+ if ! owner .IsOrganization () && ! owner . IsActive {
118118 ctx .JSON (http .StatusForbidden , map [string ]interface {}{
119119 "results" : results ,
120120 "type" : "ForbiddenError" ,
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ func HTTP(ctx *context.Context) {
105105 ctx .NotFoundOrServerError ("GetUserByName" , models .IsErrUserNotExist , err )
106106 return
107107 }
108- if ! owner .IsActive {
108+ if ! owner .IsOrganization () && ! owner . IsActive {
109109 ctx .HandleText (http .StatusForbidden , "Repository cannot be accessed. You cannot push or open issues/pull-requests." )
110110 return
111111 }
You can’t perform that action at this time.
0 commit comments