0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 12:54:41 +01:00
gitea/services/context
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
..
upload
access_log.go
api.go
api_org.go
api_test.go
base.go
base_test.go
captcha.go
context.go
context_cookie.go
context_model.go
context_request.go
context_response.go
context_template.go
context_test.go
csrf.go
org.go
package.go
pagination.go
permission.go
private.go
repo.go
response.go
user.go
utils.go
xsrf.go
xsrf_test.go