You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
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>
11 months ago
..
actions Use action user as the trigger user of schedules (#30581) 11 months ago
agit Performance optimization for git push (#30104) 12 months ago
asymkey Fix some pending problems (#29985) 1 year ago
attachment Add support for API blob upload of release attachments (#29507) 1 year ago
auth fix: Fix to delete cookie when AppSubURL is non-empty (#30375) 12 months ago
automerge Simplify how git repositories are opened (#28937) 1 year ago
context Clarify permission "HasAccess" behavior (#30585) 11 months ago
contexttest Render embedded code preview by permlink in markdown (#30234) 12 months ago
convert Clarify permission "HasAccess" behavior (#30585) 11 months ago
cron Move some asymkey functions to service layer (#28894) 1 year ago
doctor Add optional doctor storage init (#30330) 12 months ago
externalaccount Revert "Support SAML authentication (#25165)" (#29358) 1 year ago
feed More `db.DefaultContext` refactor (#27265) 2 years ago
forms Allow everyone to read or write a wiki by a repo unit setting (#30495) 11 months ago
gitdiff Fix incorrect diff expander for deletion of last lines in a file (#29501) 1 year ago
indexer Fix missing issue search index update when changing status (#28325) 1 year ago
issue Fix code owners will not be mentioned when a pull request comes from a forked repository (#30476) 12 months ago
lfs Move context from modules to services (#29440) 1 year ago
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 1 year ago
markup Fix code block style for code preview (#30298) 12 months ago
migrations Change the default maxPerPage for gitbucket (#30392) 12 months ago
mirror Avoid losing token when updating mirror settings (#30429) 12 months ago
notify Clean up log messages (#30313) 12 months ago
org Delete repos of org when purge delete user (#27273) 1 year ago
packages remove util.OptionalBool and related functions (#29513) 1 year ago
pull Commit-Dropdown: Show Author of commit if available (#30272) 12 months ago
release Use repo object format name instead of detecting from git repository (#29702) 1 year ago
repository Clarify permission "HasAccess" behavior (#30585) 11 months ago
secrets Refactor deletion (#28610) 1 year ago
task Fix incorrect ctx usage in defer function (#27740) 1 year ago
uinotification Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
user Check the token's owner and repository when registering a runner (#30406) 12 months ago
webhook Fix missed doer (#30231) 12 months ago
wiki Avoid showing `Failed to change the default wiki branch` if repo has no wiki when saving repo settings (#30329) 12 months ago