Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add group existence check when verify permission #401

Merged
merged 7 commits into from
Aug 8, 2023

Conversation

fynnss
Copy link
Contributor

@fynnss fynnss commented Aug 2, 2023

Description

add group existence check when verify permission

Rationale

Because the expired permission information is not deleted in time, the verification will success, but is expected to failed.

for more information, see stale permission clean in EndBlock. https://github.com/bnb-chain/greenfield/blob/master/x/storage/keeper/keeper.go#L1693-L1728

Example

NA

Changes

Notable changes:

  • add group existence check
  • return group id when verify permission in permission module

@fynnss fynnss requested a review from yutianwu August 7, 2023 03:41
Copy link
Contributor

@BarryTong65 BarryTong65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on the verify deleted group permission section

@fynnss fynnss added the r4r label Aug 8, 2023
@fynnss fynnss force-pushed the develop branch 3 times, most recently from 9258f57 to f7f532e Compare August 8, 2023 08:06
Merged via the queue into bnb-chain:develop with commit 388fddf Aug 8, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants