Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Aug 2, 2021
1 parent 0395393 commit a65486e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/endpoints/tokeninfo/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func doTokenInfoHistory(req pkg.TokenInfoRequest, mt *mytoken.Mytoken, clientMet

func handleTokenInfoHistory(req pkg.TokenInfoRequest, mt *mytoken.Mytoken, clientMetadata *api.ClientMetaData) model.Response {
// If we call this function it means the token is valid.
usedRestriction, errRes := auth.CheckCapabilityAndRestriction(nil, mt, clientMetadata.IP, api.CapabilityTokeninfoHistory)
usedRestriction, errRes := auth.CheckCapabilityAndRestriction(nil, mt, clientMetadata.IP, nil, nil, api.CapabilityTokeninfoHistory)
if errRes != nil {
return *errRes
}
Expand Down
2 changes: 1 addition & 1 deletion internal/endpoints/tokeninfo/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func doTokenInfoList(req pkg.TokenInfoRequest, mt *mytoken.Mytoken, clientMetada

func handleTokenInfoList(req pkg.TokenInfoRequest, mt *mytoken.Mytoken, clientMetadata *api.ClientMetaData) model.Response {
// If we call this function it means the token is valid.
usedRestriction, errRes := auth.CheckCapabilityAndRestriction(nil, mt, clientMetadata.IP, api.CapabilityListMT)
usedRestriction, errRes := auth.CheckCapabilityAndRestriction(nil, mt, clientMetadata.IP, nil, nil, api.CapabilityListMT)
if errRes != nil {
return *errRes
}
Expand Down
2 changes: 1 addition & 1 deletion internal/endpoints/tokeninfo/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func doTokenInfoTree(req pkg.TokenInfoRequest, mt *mytoken.Mytoken, clientMetada

func handleTokenInfoTree(req pkg.TokenInfoRequest, mt *mytoken.Mytoken, clientMetadata *api.ClientMetaData) model.Response {
// If we call this function it means the token is valid.
usedRestriction, errRes := auth.CheckCapabilityAndRestriction(nil, mt, clientMetadata.IP, api.CapabilityTokeninfoTree)
usedRestriction, errRes := auth.CheckCapabilityAndRestriction(nil, mt, clientMetadata.IP, nil, nil, api.CapabilityTokeninfoTree)
if errRes != nil {
return *errRes
}
Expand Down

0 comments on commit a65486e

Please sign in to comment.