api: rename accessControlList() to acls()
To be consistent with other services (e.g. todo.sr.ht).
This commit is contained in:
parent
b626d9177f
commit
d9d750669d
|
@ -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 {
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue