fixes issue when user is not logged in but viewing public project
fixes issue when user is not logged in but viewing public project

mmkassem/gitlabhq,daiyu/gitlab-zh,stoplightio/gitlabhq,allysonbarros/gitlabhq,icedwater/gitlabhq,martijnvermaat/gitlabhq,iiet/iiet-git,yatish27/gitlabhq,dreampet/gitlab,jrjang/gitlab-ce,larryli/gitlabhq,t-zuehlsdorff/gitlabhq,iiet/iiet-git,screenpages/gitlabhq,axilleas/gitlabhq,dwrensha/gitlabhq,martijnvermaat/gitlabhq,htve/GitlabForChinese,shinexiao/gitlabhq,screenpages/gitlabhq,larryli/gitlabhq,icedwater/gitlabhq,SVArago/gitlabhq,LUMC/gitlabhq,jrjang/gitlab-ce,iiet/iiet-git,htve/GitlabForChinese,axilleas/gitlabhq,ttasanen/gitlabhq,htve/GitlabForChinese,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,dplarson/gitlabhq,darkrasid/gitlabhq,shinexiao/gitlabhq,Soullivaneuh/gitlabhq,martijnvermaat/gitlabhq,jrjang/gitlabhq,allysonbarros/gitlabhq,yatish27/gitlabhq,mmkassem/gitlabhq,allysonbarros/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,openwide-java/gitlabhq,openwide-java/gitlabhq,ttasanen/gitlabhq,jirutka/gitlabhq,darkrasid/gitlabhq,jirutka/gitlabhq,ttasanen/gitlabhq,t-zuehlsdorff/gitlabhq,axilleas/gitlabhq,darkrasid/gitlabhq,t-zuehlsdorff/gitlabhq,Soullivaneuh/gitlabhq,stoplightio/gitlabhq,dwrensha/gitlabhq,dreampet/gitlab,screenpages/gitlabhq,SVArago/gitlabhq,LUMC/gitlabhq,screenpages/gitlabhq,SVArago/gitlabhq,daiyu/gitlab-zh,SVArago/gitlabhq,jirutka/gitlabhq,mr-dxdy/gitlabhq,jrjang/gitlabhq,daiyu/gitlab-zh,ttasanen/gitlabhq,stoplightio/gitlabhq,yatish27/gitlabhq,icedwater/gitlabhq,daiyu/gitlab-zh,mmkassem/gitlabhq,jirutka/gitlabhq,yatish27/gitlabhq,stoplightio/gitlabhq,openwide-java/gitlabhq,dreampet/gitlab,htve/GitlabForChinese,mr-dxdy/gitlabhq,Soullivaneuh/gitlabhq,darkrasid/gitlabhq,LUMC/gitlabhq,dwrensha/gitlabhq,mr-dxdy/gitlabhq,dwrensha/gitlabhq,iiet/iiet-git,larryli/gitlabhq,axilleas/gitlabhq,Soullivaneuh/gitlabhq,jrjang/gitlabhq,jrjang/gitlab-ce,jrjang/gitlab-ce,jrjang/gitlabhq,shinexiao/gitlabhq,openwide-java/gitlabhq,LUMC/gitlabhq,icedwater/gitlabhq,allysonbarros/gitlabhq,mr-dxdy/gitlabhq,shinexiao/gitlabhq,martijnvermaat/gitlabhq,dplarson/gitlabhq,dplarson/gitlabhq,larryli/gitlabhq