0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 12:54:41 +01:00
gitea/services/repository
wxiaoguang 48d4580dd5
Clarify permission "HasAccess" behavior (#30585)
Follow #30495

"HasAccess" behavior wasn't clear, to make it clear:

* Use a new name `HasAnyUnitAccess`, it will be easier to review related
code and permission problems.
* Separate everyone access mode to a separate field, then all calls to
HasAccess are reverted to old behavior before #30495.
* Add new tests.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2024-04-20 03:15:04 +00:00
..
archiver
commitstatus Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
files Clean up log messages (#30313) 2024-04-07 19:17:06 +08:00
adopt.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-22 13:53:52 +01:00
adopt_test.go
avatar.go
avatar_test.go
branch.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
cache.go
check.go
collaboration.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
collaboration_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
commit.go
contributors_graph.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
contributors_graph_test.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
create.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
create_test.go
delete.go Clarify permission "HasAccess" behavior (#30585) 2024-04-20 03:15:04 +00:00
delete_test.go
fork.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
fork_test.go
generate.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
generate_test.go
hooks.go
init.go
lfs.go
lfs_test.go
main_test.go
migrate.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
push.go Add cache for branch divergence on branch list page (#29577) 2024-03-08 10:21:24 +00:00
repository.go
repository_test.go
review.go
review_test.go
setting.go
template.go
transfer.go Clarify permission "HasAccess" behavior (#30585) 2024-04-20 03:15:04 +00:00
transfer_test.go Clarify permission "HasAccess" behavior (#30585) 2024-04-20 03:15:04 +00:00