mirror of https://github.com/docker/docs.git
Fix access controller resource type
The token server returns tokens with the type as "repository" not "repo". Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
935b9a9366
commit
e4bb29a669
|
|
@ -78,7 +78,7 @@ func buildAccessRecords(repo string, actions ...string) []auth.Access {
|
|||
for _, action := range actions {
|
||||
requiredAccess = append(requiredAccess, auth.Access{
|
||||
Resource: auth.Resource{
|
||||
Type: "repo",
|
||||
Type: "repository",
|
||||
Name: repo,
|
||||
},
|
||||
Action: action,
|
||||
|
|
|
|||
Loading…
Reference in New Issue