]> source.dussan.org Git - gitea.git/commit
Fix that owners also see actions on their repositories
authorPeter Smit <peter@smitmail.eu>
Mon, 16 Feb 2015 11:16:24 +0000 (13:16 +0200)
committerPeter Smit <peter@smitmail.eu>
Mon, 16 Feb 2015 11:16:24 +0000 (13:16 +0200)
commit455fad0fbd85137af5d3efec93d2b974e9383b98
treeb52292aac1c78d00cd3fc0d8f3b35146fd036b0f
parentcd6a2b78a752605d808c6392ce78b92d4759fede
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
routers/user/home.go