Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Update comment and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Yang committed Jun 9, 2017
1 parent f16a6c6 commit 23987ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/frontendhost/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,14 +1116,14 @@ func (h *Frontend) CreateConsumerGroup(ctx thrift.Context, createRequest *c.Crea
common.TagCnsPth: common.FmtCnsPth(createRequest.GetConsumerGroupName()),
})

// Check auth for read desitnation
// Check auth for read destination
authResource := common.GetResourceURNReadDestination(h.SCommon, createRequest.DestinationPath)
err = h.checkAuth(ctx, authResource, common.OperationRead, lclLg)
if err != nil {
return nil, err
}

// Check auth for create destination
// Check auth for create consumer group
authResource = common.GetResourceURNCreateConsumerGroup(h.SCommon, createRequest.ConsumerGroupName)
err = h.checkAuth(ctx, authResource, common.OperationCreate, lclLg)
if err != nil {
Expand Down

0 comments on commit 23987ee

Please sign in to comment.