File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ func home(ctx *context.Context, viewRepositories bool) {
124
124
ctx .ServerError ("RenderOrgHeader" , err )
125
125
return
126
126
}
127
+ isBothProfilesExist := ctx .Data ["HasPublicProfileReadme" ] == true && ctx .Data ["HasPrivateProfileReadme" ] == true
127
128
128
129
isViewerMember := ctx .FormString ("view_as" )
129
130
ctx .Data ["IsViewerMember" ] = isViewerMember == "member"
@@ -133,7 +134,7 @@ func home(ctx *context.Context, viewRepositories bool) {
133
134
profileType = "Private"
134
135
}
135
136
136
- if isViewerMember == "" {
137
+ if ! isBothProfilesExist {
137
138
if ! prepareOrgProfileReadme (ctx , viewRepositories , "Public" ) {
138
139
if ! prepareOrgProfileReadme (ctx , viewRepositories , "Private" ) {
139
140
ctx .Data ["PageIsViewRepositories" ] = true
You can’t perform that action at this time.
0 commit comments