1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-31 11:28:24 +00:00
Files
gitea/models/repo_permission.go
zeripath a0a77c9401 Fix deadlock when deleting team user (#13093)
Backport #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>
2020-10-10 22:48:20 +03:00

10 KiB