1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-21 23:24:29 +00:00
gitea/services
KN4CK3R 8e9b6817bc
Fix DeleteCollaboration transaction behaviour (#28886)
The method can't be called with an outer transaction because if the user
is not a collaborator the outer transaction will be rolled back even if
the inner transaction uses the no-error path.

`has == 0` leads to `return nil` which cancels the transaction. A
standalone call of this method does nothing but if used with an outer
transaction, that will be canceled.
2024-01-22 07:19:56 +00:00
..
2023-12-28 10:09:57 +00:00
2023-12-19 09:18:42 +08:00
2023-12-25 21:25:29 +01:00
2023-12-25 21:25:29 +01:00
2023-12-25 21:25:29 +01:00
2024-01-12 21:50:38 +00:00