1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-08 23:38:13 +00:00
Files
gitea/services/repository/collaboration.go
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

1.3 KiB