mirror of https://github.com/go-gitea/gitea.git
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. |
||
|---|---|---|
| .. | ||
| archiver | ||
| files | ||
| adopt.go | ||
| adopt_test.go | ||
| avatar.go | ||
| avatar_test.go | ||
| branch.go | ||
| cache.go | ||
| check.go | ||
| collaboration.go | ||
| collaboration_test.go | ||
| commit.go | ||
| create.go | ||
| create_test.go | ||
| delete.go | ||
| delete_test.go | ||
| fork.go | ||
| fork_test.go | ||
| hooks.go | ||
| lfs.go | ||
| lfs_test.go | ||
| main_test.go | ||
| push.go | ||
| repository.go | ||
| repository_test.go | ||
| review.go | ||
| review_test.go | ||
| setting.go | ||
| template.go | ||
| transfer.go | ||
| transfer_test.go | ||