zeripath 6f2784911f 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>
2020-10-10 22:48:58 +03:00
..
2020-03-22 11:12:55 -04:00
2020-04-05 07:20:50 +01:00
2020-06-15 16:46:01 -04:00
2020-09-25 07:09:23 +03:00
2020-08-16 23:07:38 -04:00
2020-04-05 07:20:50 +01:00
2019-12-15 16:57:34 -05:00
2020-08-24 11:48:15 -04:00
2020-03-22 11:12:55 -04:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-08-16 23:07:38 -04:00
2020-08-16 23:07:38 -04:00
2020-08-16 23:07:38 -04:00
2020-04-14 09:53:34 -04:00
2020-09-25 07:09:23 +03:00
2020-08-16 23:07:38 -04:00
2020-07-17 18:15:12 +03:00
2020-07-17 18:15:12 +03:00
2020-01-24 14:00:29 -05:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-04-05 07:20:50 +01:00
2020-01-13 18:33:46 +01:00