Skip to content

Commit

Permalink
fixup! fix: correct the VerifyPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Aug 8, 2023
1 parent 94a78fb commit 2e9d9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/permission/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (k Keeper) VerifyPolicy(ctx sdk.Context, resourceID math.Uint, resourceType
if effect != types.EFFECT_UNSPECIFIED {
// check the operator is the member of this group
groupMember, memberFound := k.GetGroupMember(ctx, item.GroupId, operator)
if memberFound && groupMember.ExpirationTime.After(ctx.BlockTime()) {
if memberFound && groupMember.ExpirationTime.After(ctx.BlockTime().UTC()) {
// check if the operator has been revoked
if effect == types.EFFECT_ALLOW {
allowed = true
Expand Down

0 comments on commit 2e9d9c4

Please sign in to comment.