api: rename accessControlList() to acls()

To be consistent with other services (e.g. todo.sr.ht).
This commit is contained in:
Conrad Hoffmann 2022-10-27 14:45:59 +02:00 committed by Drew DeVault
parent b626d9177f
commit d9d750669d
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ func ApplyComplexity(conf *api.Config) {
}
return c
}
conf.Complexity.Repository.AccessControlList = func(c int, cursor *model.Cursor) int {
conf.Complexity.Repository.Acls = func(c int, cursor *model.Cursor) int {
return cursorComplexity(c, cursor)
}
conf.Complexity.Repository.Log = func(c int, cursor *model.Cursor, from *string) int {

View File

@ -136,7 +136,7 @@ type Repository {
access: AccessMode! @access(scope: ACLS, kind: RO)
# Only available to the repository owner
accessControlList(cursor: Cursor): ACLCursor! @access(scope: ACLS, kind: RO)
acls(cursor: Cursor): ACLCursor! @access(scope: ACLS, kind: RO)
## Plumbing API:

View File

@ -1104,8 +1104,8 @@ func (r *repositoryResolver) Access(ctx context.Context, obj *model.Repository)
return mode, nil
}
// AccessControlList is the resolver for the accessControlList field.
func (r *repositoryResolver) AccessControlList(ctx context.Context, obj *model.Repository, cursor *coremodel.Cursor) (*model.ACLCursor, error) {
// Acls is the resolver for the acls field.
func (r *repositoryResolver) Acls(ctx context.Context, obj *model.Repository, cursor *coremodel.Cursor) (*model.ACLCursor, error) {
if cursor == nil {
cursor = coremodel.NewCursor(nil)
}