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 @@ -104,7 +104,7 @@ func HTTP(ctx *context.Context) {
104
104
ctx .NotFoundOrServerError ("GetUserByName" , models .IsErrUserNotExist , err )
105
105
return
106
106
}
107
- if ! owner .IsActive {
107
+ if ! owner .IsOrganization () && ! owner . IsActive {
108
108
ctx .HandleText (http .StatusForbidden , "Repository cannot be accessed. You cannot push or open issues/pull-requests." )
109
109
return
110
110
}
You can’t perform that action at this time.
0 commit comments