mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-07-18 23:47:50 +00:00
chore(refactor): remove GetX redundant accessors and use X in services/context/api.go (#13215)
Followup of the refactor adding setter/getter to APIContext https://codeberg.org/forgejo/forgejo/pulls/13143 - Only has an impact on the getters used by `routers/api/v1/permissions` - When GetX and X both exist, remove GetX - When GetX exists and X does not, rename GetX to X - GetOrg is an exception as it would conflict with Org and is renamed Organization. This is due to APIContext having its own Org structure that includes an Organization. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13215 Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
This commit is contained in:
parent
fa96d5eed2
commit
423b6cb589
36 changed files with 161 additions and 185 deletions
|
|
@ -220,33 +220,33 @@ forgejo.org/modules/zstd
|
|||
Writer.Close
|
||||
|
||||
forgejo.org/routers/api/v1/permissions
|
||||
Permissions.GetContext
|
||||
Permissions.Context
|
||||
Permissions.SetContext
|
||||
Permissions.GetToken
|
||||
Permissions.SetToken
|
||||
Permissions.GetRepository
|
||||
Permissions.Repository
|
||||
Permissions.SetRepository
|
||||
Permissions.GetDoer
|
||||
Permissions.Doer
|
||||
Permissions.SetDoer
|
||||
Permissions.GetUser
|
||||
Permissions.User
|
||||
Permissions.SetUser
|
||||
Permissions.GetOrg
|
||||
Permissions.SetOrg
|
||||
Permissions.GetTeam
|
||||
Permissions.Organization
|
||||
Permissions.SetOrganization
|
||||
Permissions.Team
|
||||
Permissions.SetTeam
|
||||
Permissions.GetPackageOwner
|
||||
Permissions.PackageOwner
|
||||
Permissions.SetPackageOwner
|
||||
Permissions.GetPackageAccessMode
|
||||
Permissions.PackageAccessMode
|
||||
Permissions.SetPackageAccessMode
|
||||
Permissions.GetPermission
|
||||
Permissions.Permission
|
||||
Permissions.SetPermission
|
||||
Permissions.GetIsSigned
|
||||
Permissions.IsSigned
|
||||
Permissions.SetIsSigned
|
||||
Permissions.GetPublicOnly
|
||||
Permissions.PublicOnly
|
||||
Permissions.SetPublicOnly
|
||||
Permissions.GetReducer
|
||||
Permissions.Reducer
|
||||
Permissions.SetReducer
|
||||
Permissions.GetAuthentication
|
||||
Permissions.Authentication
|
||||
Permissions.SetAuthentication
|
||||
Permissions.RequiredScopeCategories
|
||||
Permissions.SetRequiredScopeCategories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue