0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-03 02:57:47 +01:00
gitea/routers/web
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
..
admin
auth Allow preferred_username as username source for OIDC (#30454) 2024-04-16 05:41:39 +00:00
devtest
events
explore
feed
healthcheck
misc
org Fix project description rendering for org (#30587) 2024-04-19 07:58:56 +00:00
repo Allow everyone to read or write a wiki by a repo unit setting (#30495) 2024-04-17 15:58:37 +00:00
shared
user Clarify permission "HasAccess" behavior (#30585) 2024-04-20 03:15:04 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
passkey.go
swagger_json.go
web.go Fix HEAD method for robots.txt (#30603) 2024-04-19 21:43:56 +08:00
webfinger.go