Fix that owners also see actions on their repositories
Fix that owners also see actions on their repositories

This is a balance between speed and nice code, where speed has won. To prevent a repository query for each action the ownername is match with the current user.

It would be "cleaner" or "better" if we fetch the repository each time. Another option is to add the RepoOwnerID to action

agaurav/gogs,treejames/gogs,hzy001/gogs,avelino/gitea,mukaiu/gogs,kloudsio/gogs,Bwko/gitea,linquize/gitea,kjellkvinge/gitea,dancewing/gogs,opavader/gogs,sooboy/gogs,cez81/gitea,Immortalin/gogs,kolonse/gogs,SlavikZ/gogs,mpindado/gogs,agaurav/gogs,tszym/gogs,xet7/gogs,linquize/gogs,cngolang/gogs,pwelter34/gogs,rems4e/gitea,jorgesumle/gitea,kiliit/gogs,dnmgns/gitea,andrewrothstein/gogs,gogits/gogs,gogits/gogs,eddiesigner/gogs,geerlingguy/gogs,mjwwit/gitea,Bwko/gitea,armersong/gogs,kubatyszko/gitea,0rax/gogs,yaggytter/gogs,mark77z/tt2016,wqweto/gogs,huyueMiss/gogs,codeskyblue/gogs,strk/gogs,manfer/gitea,golang-lib/gogs,jvanderneutstulen/gogs,beni55/gogs,odinuge/gogs,tpires/gogs,typeless/gitea,SlavikZ/gogs,sapk-fork/gitea,kloudsio/gogs,lucienevans/gogs,denji/gitea_tmp,lunny/gitea,hiproz/gogs,fabric8io/gogs,0rax/gogs,dlob/gogs,siadat/gogs,CaeruleusAqua/gitea,mukaiu/gogs,DblK/gitea,linquize/gitea,armersong/gogs,metadevfoundation/gogs,kolonse/gogs,go-gitea/gitea,rems4e/gitea,Morlinest/gitea,psolyca/gitea,w4ngyi/gogs,bkcsoft/gogs,agaurav/gogs,everhopingandwaiting/gogs,odinuge/gogs,typeless/gitea,kolonse/gogs,cem/gogs,chriswatt/gogs,uileyar/gogs,minecrafter/gitea,metadevfoundation/gogs,Em-AK/gogs,treejames/gogs,kjellkvinge/gitea,helojo/gogs,cem/gogs,hzy001/gogs,kong36088/SCAUGogits,pikacloud/pikacode,richmahn/gogs,spacetourist/gitea,dnmgns/gitea,kseistrup/gogs,dl5rcw/gitea,treejames/gogs,vdbt/gitea,tempbottle/gogs,jqs7/gogs,pikacloud/pikacode,everhopingandwaiting/gogs,nounoursheureux/gitea,yonglehou/gogs,lafriks/gitea,dentmaged/gogs,vCaesar/gitea,sooboy/gogs,xet7/gogs,denji/gitea_tmp,peterhadlaw/gogs,cloudron-io/gogs,Immortalin/gogs,psaavedra/gogs,denghongcai/gogs,gigforks/gogs,geek1011/gitea,jqs7/gogs,tony/gogs,bygreencn/gogs,uileyar/gogs,bygreencn/gogs,tanapoln/gogs,noikiy/gogs,tony/gogs,imjerrybao/gogs,sillydong/gogs,kevinc0825/gogs,fabric8io/gogs,sapk-fork/gitea,sapk-fork/gitea,vdbt/gitea,tanapoln/gogs,0rax/gogs,golang-lib/gogs,haoyixin/gogs,andreynering/gitea,cez81/gitea,cgars/gogs,tszym/gogs,eddiesigner/gogs,tboerger/gitea,sapk-fork/gitea,puffybsd/gitea,kjellkvinge/gitea,ForxaCoLab/forxa,linquize/gogs,everhopingandwaiting/gogs,kubatyszko/gitea,Spice-King/gogs,bkcsoft/gogs,gogits/gogs,SlavikZ/gogs,manfer/gitea,kiliit/gogs,gemili/gogs,denghongcai/gogs,AnuchitPrasertsang/gogs,faddat/gogs,tboerger/gitea,hzy001/gogs,GodOfConquest/gogs,xet7/gogs,kiliit/gogs,denji/gitea_tmp,GodOfConquest/gogs,everhopingandwaiting/gogs,richmahn/gogs,yonglehou/gogs,sapk/gogs,Ralph-Wang/gogs,jqs7/gogs,linquize/gogs,peterhadlaw/gogs,avelino/gitea,lucienevans/gogs,kubatyszko/gitea,Janfred/gogs,hiproz/gogs,faddat/gogs,xaionaro/gogs,ForxaCoLab/forxa,ethantkoenig/gitea,imjerrybao/gogs,andrewrothstein/gogs,helojo/gogs,denghongcai/gogs,geek1011/gitea,w4ngyi/gogs,gemili/gogs,pwelter34/gogs,kseistrup/gogs,psaavedra/gogs,dnmgns/gitea,andreynering/gitea,pentix/gogs,helojo/gogs,siadat/gogs,Ralph-Wang/gogs,pecastro/gogs,nounoursheureux/gitea,cem/gogs,likeit92/gogs,manfer/gogs,uileyar/gogs,go-gitea/gitea,avelino/gitea,cloudron-io/gogs,tempbottle/gogs,imjerrybao/gogs,ethantkoenig/gitea,eddiesigner/gogs,tempbottle/gogs,codeskyblue/gogs,strk/gogs,voxxit/gogs,spacetourist/gitea,haoyixin/gogs,ForxaCoLab/forxa,lunny/gitea,manfer/gogs,denji/gitea_tmp,dlob/gogs,liliexuan/gogs,wangjild/gogs,tony/gogs,mpindado/gogs,kevinc0825/gogs,lunny/gitea,jvanderneutstulen/gogs,opavader/gogs,voxxit/gogs,cez81/gitea,opavader/gogs,likeit92/gogs,0rax/gogs,mapmeld/codemingler,svcavallar/gogs,pikacloud/pikacode,yaggytter/gogs,gwynantj/gogs,AndreaGiardini/gogs,cybe/gitea,vCaesar/gitea,gwynantj/gogs,xormplus/gitea,liliexuan/gogs,sapk/gogs,armersong/gogs,manfer/gitea,kong36088/SCAUGogits,dlob/gogs,Spice-King/gogs,makhov/gitea,liliexuan/gogs,strk/gogs,CaeruleusAqua/gitea,fabric8io/gogs,odinuge/gogs,haoyixin/gogs,DblK/gitea,cngolang/gogs,JonasFranzDEV/gitea,tboerger/gitea,bygreencn/gogs,DebansNetwork/gogs,dentmaged/gogs,cybe/gitea,avelino/gitea,wangjild/gogs,cumgun/gitea,ethantkoenig/gogs,cngolang/gogs,bkcsoft/gogs,denji/gitea,psaavedra/gogs,geerlingguy/gogs,AnuchitPrasertsang/gogs,sapk/gogs,AndreaGiardini/gogs,ethantkoenig/gogs,codeskyblue/gogs,jvanderneutstulen/gogs,dancewing/gogs,pecastro/gogs,svcavallar/gogs,willemvd/gitea,manfer/gogs,kseistrup/gogs,Spice-King/gogs,faddat/gogs,wqweto/gogs,xiaoyanit/gogs,jacobxk/gogs,golang-lib/gogs,yonglehou/gogs,mapmeld/codemingler,lucienevans/gogs,gwynantj/gogs,mpindado/gogs,wangjild/gogs,andrewrothstein/gogs,admik/gitea,kevinc0825/gogs,Janfred/gogs,AndreaGiardini/gogs,sillydong/gogs,Bwko/gitea,pentix/gogs,psolyca/gitea,DebansNetwork/gogs,noikiy/gogs,pentix/gogs,huyueMiss/gogs,noikiy/gogs,siadat/gogs,cloudron-io/gogs,AnuchitPrasertsang/gogs,JonasFranzDEV/gitea,mapmeld/codemingler,mjwwit/gitea,DebansNetwork/gogs,beni55/gogs,pwelter34/gogs,dancewing/gogs,cumgun/gitea,chriswatt/gogs,huyueMiss/gogs,xaionaro/gogs,gemili/gogs,gigforks/gogs,wqweto/gogs,typeless/gitea,Em-AK/gogs,go-gitea/gitea,xaionaro/gogs,tszym/gogs,jacobxk/gogs,likeit92/gogs,GodOfConquest/gogs,Ralph-Wang/gogs,pecastro/gogs,tpires/gogs,Immortalin/gogs,svcavallar/gogs,lafriks/gitea,cgars/gogs,xiaoyanit/gogs,Janfred/gogs,cgars/gogs,mark77z/tt2016,geerlingguy/gogs,yaggytter/gogs,kong36088/SCAUGogits,dancewing/gogs,lafriks/gitea,mukaiu/gogs,beni55/gogs,nounoursheureux/gitea,linquize/gitea,hiproz/gogs,voxxit/gogs,Morlinest/gitea,metadevfoundation/gogs,sooboy/gogs,Em-AK/gogs,mark77z/tt2016,kloudsio/gogs,xiaoyanit/gogs,jorgesumle/gitea,w4ngyi/gogs,jacobxk/gogs,gigforks/gogs,tanapoln/gogs,sillydong/gogs,tpires/gogs,chriswatt/gogs,typeless/gitea,dentmaged/gogs,peterhadlaw/gogs,gigforks/gogs