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) {
114
114
})
115
115
return
116
116
}
117
- if ! owner .IsActive {
117
+ if ! owner .IsOrganization () && ! owner . IsActive {
118
118
ctx .JSON (http .StatusForbidden , map [string ]interface {}{
119
119
"results" : results ,
120
120
"type" : "ForbiddenError" ,
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ func HTTP(ctx *context.Context) {
105
105
ctx .NotFoundOrServerError ("GetUserByName" , models .IsErrUserNotExist , err )
106
106
return
107
107
}
108
- if ! owner .IsActive {
108
+ if ! owner .IsOrganization () && ! owner . IsActive {
109
109
ctx .HandleText (http .StatusForbidden , "Repository cannot be accessed. You cannot push or open issues/pull-requests." )
110
110
return
111
111
}
You can’t perform that action at this time.
0 commit comments