0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 23:36:29 +01:00
gitea/services/repository
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
..
archiver
files
adopt_test.go
adopt.go
avatar_test.go
avatar.go
branch.go
cache.go
check.go
collaboration_test.go
collaboration.go
commit.go
create_test.go
create.go
delete_test.go
delete.go
fork_test.go
fork.go
hooks.go
lfs_test.go
lfs.go Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
main_test.go
push.go
repository_test.go
repository.go
review_test.go
review.go
setting.go
template.go
transfer_test.go
transfer.go