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(rbac): revoke privilege #14278

Merged
merged 3 commits into from Jan 9, 2024
Merged

Conversation

flaneur2020
Copy link
Member

@flaneur2020 flaneur2020 commented Jan 9, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

This PR fixed the revoke logic, in the before it uses ^= to revoke the provilege, but the semantic of ^= is "toggle" not "remove". This PR replaces the "^=" with a dump filter logic.

Fixes #14239

Tests

  • Unit Test
  • Logic Test

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

This change is Reviewable

@github-actions github-actions bot added the pr-bugfix this PR patches a bug in codebase label Jan 9, 2024
@flaneur2020 flaneur2020 marked this pull request as ready for review January 9, 2024 07:04
@TCeason TCeason mentioned this pull request Jan 9, 2024
11 tasks
@BohuTANG BohuTANG merged commit f5b31e2 into datafuselabs:main Jan 9, 2024
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: revoke a not exists privilege will grant it
3 participants