githaven-fork/routers/api
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
..
actions Check the token's owner and repository when registering a runner (#30406) 2024-04-11 16:01:44 +08:00
packages Support nuspec manifest download for nuget packages (#28921) 2024-04-17 15:30:41 +00:00
v1 Clarify permission "HasAccess" behavior (#30585) 2024-04-20 03:15:04 +00:00