diff options
author | zeripath <art27@cantab.net> | 2020-10-10 20:48:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 22:48:58 +0300 |
commit | 6f2784911fe739d3b83787b7984c1b8a2fb31690 (patch) | |
tree | 0227ef1ece90d639fe54f73ec380944b896f73fd /modules/upload | |
parent | d65cd5677af3df5d616bf48dfd4be354e23c184f (diff) | |
download | gitea-6f2784911fe739d3b83787b7984c1b8a2fb31690.tar.gz gitea-6f2784911fe739d3b83787b7984c1b8a2fb31690.zip |
Fix deadlock when deleting team user (#13092)
`models.getUserRepoPermission(...)` calls `HasOrgVisible` which
uses `models.x` potentially outside of the transaction `e` provided
as an argument to `getUserRepoPermission`.
This PR switches to use `hasOrgVisible(e, ...)`.
Fix #12983
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/upload')
0 files changed, 0 insertions, 0 deletions