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:
Derek McGowan 2015-07-13 16:22:05 -07:00
parent 935b9a9366
commit e4bb29a669
1 changed files with 1 additions and 1 deletions

View File

@ -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,