gitea/models/perm/access
wxiaoguang 48d4580dd5
Clarify permission "HasAccess" behavior ()
Follow 

"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 .
* Add new tests.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
..
access.go Allow everyone to read or write a wiki by a repo unit setting ()
access_test.go Clarify permission "HasAccess" behavior ()
main_test.go make writing main test easier ()
repo_permission.go Clarify permission "HasAccess" behavior ()
repo_permission_test.go Clarify permission "HasAccess" behavior ()