Skip to content

Commit

Permalink
fix: expiration time for statement (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 authored Sep 11, 2023
1 parent 13013b6 commit cb0efda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/bsdb/permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func (b *BsDBImpl) ListObjectPolicies(objectID common.Hash, actionType permtypes
permission.resource_type = ? AND
permission.resource_id = ? AND
permission.policy_id > ? AND
permission.expiration_time > ? AND
(permission.expiration_time > ? OR permission.expiration_time = 0) AND
permission.removed = false AND
statements.expiration_time > ? AND
(statements.expiration_time > ? OR statements.expiration_time = 0)AND
statements.action_value in (?) AND
statements.removed = false`,
gnfdresource.RESOURCE_TYPE_OBJECT.String(),
Expand Down

0 comments on commit cb0efda

Please sign in to comment.