diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-16 13:16:24 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-16 13:16:24 +0200 |
commit | 455fad0fbd85137af5d3efec93d2b974e9383b98 (patch) | |
tree | b52292aac1c78d00cd3fc0d8f3b35146fd036b0f /models/repo.go | |
parent | cd6a2b78a752605d808c6392ce78b92d4759fede (diff) |
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
Diffstat (limited to 'models/repo.go')
0 files changed, 0 insertions, 0 deletions